how to block a socket indefinitely - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

how to block a socket indefinitely

radebergerradeberger Posts: 2Member
Hi everybody,

When a socket is created, by default it is a blocking socket. Under blocking mode socket I/O operations, connect and accept operations all block until the operation in question is completed.
I want to receive data periodically from a client. That is, the first time I receive data the socket is blocked in the accept function but the next time is not blocked anymore and I want that it waits for the next incoming data. I use the ioctlsocket function after the accept function but it doesn't work.

Can you help me?

thank you very much.
Sign In or Register to comment.