Unit sockets_wince
Description
{$DEFINE PORTUGUES} : Windows CE socket functions.
Overview
Functions and Procedures
function socket_recv(sock:Tsocket; buf:PByte; len: Cardinal; flags, timeout: LongInt):LongInt; |
function socket_send(sock:Tsocket; buf:PByte; len: Cardinal; flags, timeout: LongInt):LongInt; |
function setblockingmode(fd:TSocket; mode:dword):LongInt; |
function connect_with_timeout(sock:Tsocket; address:PSockAddr; address_len:t_socklen; timeout:LongInt):LongInt; |
function CheckConnection(var CommResult:TIOResult; var incRetries:Boolean; var FSocket:TSocket; CloseSocketProc:TConnectEvent; DoCommPortDisconected:TDisconnectNotifierProc):Boolean; |
function WaitForConnection(FListenerSocket:TSocket; timeout:LongInt):Boolean; |
function GetNumberOfBytesInReceiveBuffer(socket:Tsocket):LongInt; |
Constants
SOMAXCONN = $7fffffff; |
Description
Functions and Procedures
function socket_recv(sock:Tsocket; buf:PByte; len: Cardinal; flags, timeout: LongInt):LongInt; |
: Function that receive data of a socket. Their parameters are the same of the function recv/fprecv, with a extra parameter that is the maximum timout to receive all requested data on socket. |
function socket_send(sock:Tsocket; buf:PByte; len: Cardinal; flags, timeout: LongInt):LongInt; |
: Function that sends data through the socket. Their parameters are the same of the function send/fpsend, with a extra parameter that is the maximum timout to send all requested data. |
function setblockingmode(fd:TSocket; mode:dword):LongInt; |
: Sets the socket operation mode. |
function connect_with_timeout(sock:Tsocket; address:PSockAddr; address_len:t_socklen; timeout:LongInt):LongInt; |
: Connect function with timeout. Their parameters are the same of the functions connect/fpconnect, with a extra parameter that is the maximum timeout of the connection establishment in milliseconds. Returns0 if the connection was estabilished successful. |
function CheckConnection(var CommResult:TIOResult; var incRetries:Boolean; var FSocket:TSocket; CloseSocketProc:TConnectEvent; DoCommPortDisconected:TDisconnectNotifierProc):Boolean; |
: Check the current connection state and updates the state of the communication port. Returns
|
function WaitForConnection(FListenerSocket:TSocket; timeout:LongInt):Boolean; |
: Waits for a incoming connection. Returns
|
function GetNumberOfBytesInReceiveBuffer(socket:Tsocket):LongInt; |
: Rerturn how many bytes are available on receive buffer. ReturnsA value bigger than zero if data are available on the receive buffer, zero if no data on the receive buffer and -1 on error. |
Constants
SOMAXCONN = $7fffffff; |
Generated by PasDoc 0.14.0.