Non-blocking Connections

From RAD Studio
Jump to: navigation, search

Go Up to Reading and Writing Over Socket Connections


Non-blocking connections read and write asynchronously, so that the transfer of data does not block the execution of other code in you network application.

  • For server sockets, set the ServertType property to stNonBlocking to create a non-blocking connection.
  • For client sockets, set the ClientType property to ctNonBlocking to create a non-blocking connection.

When the connection is non-blocking, reading and writing events inform your socket when the socket on the other end of the connection tries to read or write information.

See Also