|
-
Jun 27th, 2002, 09:35 PM
#1
Thread Starter
Addicted Member
winsock
I am making a simple chat program using winsock.
if I don't use WSAAsyncSelect(.....) and just use
d=connect(s,(struct sockaddr *)&a,sizeof(a));
d gives 0 "No error" but I can send to server only I can't get data from server.
but if I use
WSAAsyncSelect(.....)
d=connect(s,(struct sockaddr *)&a,sizeof(a));
d gives error but it works and I can send and receive.
So how to check wether connection has established or not?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|