-
June 19th, 2009, 05:29 AM
#1
Problem With CSocket::Connect
Dear All,
I use Connect(IP,Port) function to connect with server from client. if server port is in Listen mode, Client Connects with server within 1 sec.
Suppose if server not in Listen mode, but client try to connect with server. In Client, Control is waiting 10 to 15 sec on Connect("192.168.3.123",8686) function.
Why Connect function takes that much time when server not in listen mode...any one know the reason. At the period of Connection I can't do any operation.(Eg: I can't do Posting msg to main frame , i can't operate menus, like a way work affects). how we avoid this.....i hope u will help.
Thanks All!
-
June 19th, 2009, 05:48 AM
#2
Re: Problem With CSocket::Connect
Originally Posted by sathyboopathiraja
... At the period of Connection I can't do any operation.(Eg: I can't do Posting msg to main frame , i can't operate menus, like a way work affects). how we avoid this.....i hope u will help.
Get rid of CSocket class and use CAsyncSocket instead!
Victor Nijegorodov
-
June 19th, 2009, 06:30 AM
#3
Re: Problem With CSocket::Connect
Dear Victor,
It Wotks fine... thax u for ur guidance..
With regards,
Boopathiraja.N
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
|