Search:

Type: Posts; User: Codeslinger

Search: Search took 0.00 seconds.

  1. Hi mate, You need to look into winsock...

    Hi mate,

    You need to look into winsock programming. To do what you want is really quite simple. You just initialise winsock. Create a socket and give it the server information that you wish to...
  2. Replies
    6
    Views
    3,669

    Move the select statement inside the do while...

    Move the select statement inside the do while loop



    do
    {
    sel=getch();
    switch(sel)
    {
    case '1': opcio1() ; break ;
  3. Hi mate, Your code compiled fine for me (i did...

    Hi mate,

    Your code compiled fine for me (i did have to comment out references to cweek and cday though). I think Elysia is right, it feels like a forward declaration problem to me.

    I commented...
  4. Replies
    1
    Views
    1,596

    I must admit im a bit confused about the logic of...

    I must admit im a bit confused about the logic of your code. Are you just trying to print the IP address of a client that you have accepted a connection to? Or get the Ip address of the client so you...
  5. When you create a socket it is automatically set...

    When you create a socket it is automatically set to be blocking. If you want to set it to non blocking then you can call fcntl, i.e.




    fcntl(sockfd, F_SETFL, O_NONBLOCK);



    however this...
  6. Replies
    13
    Views
    1,402

    Another problem is with your setName member...

    Another problem is with your setName member function.

    You are declaring that it returns a string but you dont return anything. Im guessing that this is a mistake and that you intend to declare it...
Results 1 to 6 of 6