System.Net.Socket.TSocket.CreateSocket
Delphi
function CreateSocket: TSocketHandle; virtual;
C++
virtual NativeUInt __fastcall CreateSocket(void);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | System.Net.Socket.pas System.Net.Socket.hpp |
System.Net.Socket | TSocket |
Description
Creates a socket and returns a socket handle.
Exceptions
A call to CreateSocket can raise any of the following exceptions:
Exception | Exception.Message | Scenarios |
---|---|---|
Network socket error: <error message> (<error code>), on API 'socket' |
|