ATL / WTL / STL
|
|
 |

|
Oops. It is the Accept() that returns the would block WSA code, not Listen. My appologies.
Here are some code fragments:
Omitting the error checking and reporting, the server initialize does this
bool C_Server::Class_Initialize()
{ ...
m_winsock_status = AfxSocketInit();
...
m_winsock_status = Create( m_port_number, SOCK_STREAM,
FD_READ | FD_WRITE | FD_OOB | FD_ACCEPT | FD_CONNECT | FD_CLOSE,
DEFAULT_IP_ADDRESS ); ...}
the Listen() method does this:
bool C_Server::Class_Listen()
{
m_winsock_status = Listen();
... }
And the Accept() looks like this:
bool C_Server::Class_Accept()
{
mp_C_Server_Send_Time_Socket = new C_Server_Send_Time_Socket;
m_winsock_status = Accept( *mp_C_Server_Send_Time_Socket );
...}
I have continued work and am partway through the Client code. The client initialize seems to be OK, the client Connect() gets WSA code 10035, socket in use. I am beginning to think that is to be expected.
Advice?
Thanks for your time
Edit, I keep messing with the formatting trying to get the code blocks to display correctly. Having some difficulties there. Preview looks good, but when I post it does not. I think I have it, disabled the checkbox to treat my content as plain text. But this darn edit box keeps jumping around in the text.
|
|
|
|
 |
|
|
General
News
Suggestion
Question
Bug
Answer
Joke
Rant
Admin