User Profile

Collapse

Profile Sidebar

Collapse
ollii
ollii
Last Activity: Sep 21 '07, 03:16 AM
Joined: Sep 7 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • warning: the `gets' function is dangerous and should not be used.

    Hello everybody

    im just creating an client that is going to communicated with Iterative server.
    and i get this error:
    warning: the `gets' function is dangerous and should not be used.

    and i think this is related to this code:

    printf("Enter message to be sent:\n");
    gets(send_buf);


    and this is my code for the client could anyone could check it...
    See more | Go to post
    Last edited by sicarie; Sep 19 '07, 01:35 PM. Reason: Code tags

  • ollii
    replied to error: syntax error before numeric constant
    in C
    thank you very much it worked
    See more | Go to post

    Leave a comment:


  • ollii
    started a topic error: syntax error before numeric constant
    in C

    error: syntax error before numeric constant

    im creating a iterrative server
    and i get this error

    error: syntax error before numeric constant

    and this errors occurs near this line:

    int listen(sock,5);

    need help

    and this is begining of my iterative server
    can any one check my code to see if im on the right track:
    [code=c]
    #include <sys/types.h>
    #include <sys/socket.h>...
    See more | Go to post
    Last edited by sicarie; Sep 19 '07, 01:34 PM. Reason: Code tags

  • ollii
    started a topic Segmentation faults with client and server
    in C

    Segmentation faults with client and server

    Hello evryboody, i created client and srever program that they can both communicate together by TCP and UDP, but when i want to send message to server from client i get error on the server i get error "Segmentati on Fault"

    This is Code for server:

    /* server_it.c: DST iterative echo server
    to be linked with DST_sock */



    #include <stdio.h>
    #include <netinet/in.h>...
    See more | Go to post

  • ollii
    started a topic undefined reference
    in C

    undefined reference

    Hello everybody
    im creating a srever program for my work
    that can communicate with the client using udp protocol.

    i get couple errors and i do not know hat those error mean and what is the problem with by code.
    Need Help

    The code:

    #include <stdio.h>
    #include <netinet/in.h>
    #include <arpa/inet.h>
    #include <stdlib.h>
    #include <unistd.h>...
    See more | Go to post
No activity results to display
Show More
Working...