Hi there, i am trying to create multiple clients connecting to the server.
But the problem is that I can't set the Socket() constructor time.i.e by default the constructor waits to listen for 20 sec. My clients are many so that the time taking for those is hi. So that any one can help me please. I want to set the time to minimum sec before the client is created.
add4
0
Newbie Poster
Recommended Answers
Jump to PostYou don't set the timeout in the constructor, it's an optional parameter on the connect(...) method.
All 3 Replies
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
add4
0
Newbie Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.