Im writing a quick little program to transfer text from one computer to another using sockets in MFC and Im having trouble with the connect() member function. It seems it keeps giving me a "WSAEWOULDBLOCK" error after I call it.
Im not sure why Im getting this error, because the 'OnConnect' event does get fired, yet the server side program doesn't response to an Accept event, so I know the connect is not working right. If anyone has any ideas, Id appreciate it.
Here is a code snippet for the client side when it tries to establish a connection:
// This function is called from a button
// being pushed
CEdit *IP, *Message;
//pointers to the edit controls
IP = (CEdit*)GetDlgItem(IDC_IP);
Message = (CEdit*)GetDlgItem(IDC_MESSAGE);
//Get data from the controls
// port is 4114
// here is the troubled line
Thanks for any help,