TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Daniel van Pletzen
NA
25
0
Another socket issue
Mar 19 2008 7:27 AM
when a client socket reconnects after its network cable has been plugged in i get an exception on the server socket in
public static void OnClientConnect(IAsyncResult asyn)
{
Socket workerSocket = m_mainSocket.EndAccept(asyn); <-- here is the problem
}
socket exception is
System.Net.Sockets.SocketException: The requested name is valid and was found in the
database, but it does not have the correct associated data being resolved for
if i wait like 10 seconds on the client side before reconnecting after cable is plugged in again it works fine ..
any1 got any idea's how the client knows when its ok for it to reconnect again ?
Reply
Answers (
1
)
Socket Issue
Declaring variables in the middle of a routine...