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...
Type: Posts; User: Codeslinger
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...
Move the select statement inside the do while loop
do
{
sel=getch();
switch(sel)
{
case '1': opcio1() ; break ;
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...
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...
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...
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...