Internet Direct (Indy) Version 9.0.2 Beta
|
procedure AllocateSocket(const ASocketType: Integer; const AProtocol: Integer);
ASocketType determines address family used for the connection, and indicates the valid protocol family options for the socket type. The following socket types are supported:
AProtocol identifies the Internet protocol to be used for the given socket type. Only a single protocol exists to support a particular socket type using a given address format. The following protocol families are supported:
AllocateSocket will call CloseSocket if the socket handle is already allocated.
AllocateSocket will set HandleAllocated to True to reflect the state of the socket handle.