System.Net.Socket.TSocket.CreateSocket

From RAD Studio API Documentation
Jump to: navigation, search

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

ESocketError

Network socket error: <error message> (<error code>), on API 'socket'

See Also