Delphi
procedure &Set(const ASocket: TSocket); overload; inline;
C++
void __fastcall Set(TSocket* const ASocket)/* overload */;
Properties
| Type |
Visibility |
Source |
Unit |
Parent |
procedure function |
public |
System.Net.Socket.pas System.Net.Socket.hpp |
System.Net.Socket |
TFDSet |
Description
Adds the specified socket to the fd_set structure.
Exceptions
A call to Set can raise any of the following exceptions:
| Exception
|
Exception.Message
|
Scenarios
|
|
ESocketError
|
Invalid socket handle
|
- The socket handle of the specified socket is invalid. The socket handle of a socket may be invalid in any of the following scenarios:
- You have closed the specified socket.
- You did not specify a socket handle when you created the specified socket, and since then you did not call any of the following functions that automatically create a socket handle for your socket:
|
|
Number of sockets must not exceed FD_SETSIZE(<number>)
|
- You attempted to add a socket to an fd_set structure that had already reached the maximum number of sockets that the operating system where your application is running allows (<number>). For more information, see the following documentation for the operating system where your application was running:
|
See Also