Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

With a Client application what affe

Status
Not open for further replies.

sweep123

Technical User
May 1, 2003
185
GB
With a Client application what affect on the Server does the blocking or non-blocking option on the Client created socket have.

Does the Server work differently with blocking and non-blocking socket.
The reason for this question is I have been asked by the Server programmer to change may socket from blocking to non-blocking, I thought that the Server would not care about this option.

So I nned to change my program logic:-
For blocking = separate thread hang on wait.

For non-blocking = poll for data (may not need a separate thread).

Does the Server care about this option?

Sweep.
 
No, the server has no idea if the client socket is blocking or non-blocking.

//Daniel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top