Description | Hierarchy | Fields | Methods | Properties |
type unaUdpSocket = class(unaSocket)
This class encapsulates UDP socket implementation.
constructor create(); |
|
function recvfrom(out from: sockaddr_in; data: pointer; dataLen: uint; noCheck: bool = true; flags: uint = 0; timeout: tTimeout = 3000): int; overload; |
|
function recvfrom(out from: sockaddr_in; var data: aString; noCheck: bool = true; flags: uint = 0; timeout: tTimeout = 3000): int; overload; |
|
function sendto(var addr: sockaddr_in; data: pointer; size: uint; flags: uint = 0; timeout: tTimeout = 3000; noCheck: bool = false): uint; overload; |
|
function sendto(var addr: sockaddr_in; data: pointer; size: uint; noCheck: bool = true; flags: uint = 0): uint; overload; |
|
function sendto(var addr: sockaddr_in; const data: aString; flags: uint = 0; timeout: tTimeout = 3000): uint; overload; |
|
function sendto(var addr: sockaddr_in; const data: aString; noCheck: bool = true; flags: uint = 0): uint; overload; |
constructor create(); |
|
Creates UDP socket. |
function recvfrom(out from: sockaddr_in; data: pointer; dataLen: uint; noCheck: bool = true; flags: uint = 0; timeout: tTimeout = 3000): int; overload; |
|
Receives data from remote host. Flags could be 0, MSG_PEEK or MSG_OOB.
ReturnsSOCKET_ERROR if some error ocurred, or -2 if no data can be read at this time. |
function recvfrom(out from: sockaddr_in; var data: aString; noCheck: bool = true; flags: uint = 0; timeout: tTimeout = 3000): int; overload; |
|
Receives data from remote host. Flags could be 0, MSG_PEEK or MSG_OOB.
Returnsspecific WSA error otherwise. |
function sendto(var addr: sockaddr_in; data: pointer; size: uint; flags: uint = 0; timeout: tTimeout = 3000; noCheck: bool = false): uint; overload; |
|
Sends block of data to remote host. Flags could be 0, MSG_DONTROUTE or MSG_OOB. If noCheck parameter is true it will not check the socket state before sending the data. This could be used to avoid unnecessary delays. Returns0 if data was sent successfully, or specific WSA error otherwise. |
function sendto(var addr: sockaddr_in; data: pointer; size: uint; noCheck: bool = true; flags: uint = 0): uint; overload; |
|
Sends block of data to remote host. Flags could be 0, MSG_DONTROUTE or MSG_OOB. If noCheck parameter is true it will not check the socket state before sending the data. This could be used to avoid unnecessary delays. Returns0 if data was sent successfully, or specific WSA error otherwise. |
function sendto(var addr: sockaddr_in; const data: aString; flags: uint = 0; timeout: tTimeout = 3000): uint; overload; |
|
Sends string to remote host. Flags could be 0, MSG_DONTROUTE or MSG_OOB. Returns0 if data was sent successfully, or specific WSA error otherwise. |
function sendto(var addr: sockaddr_in; const data: aString; noCheck: bool = true; flags: uint = 0): uint; overload; |
|
Sends string to remote host. Flags could be 0, MSG_DONTROUTE or MSG_OOB. If noCheck parameter is true it will not check the socket state before sending the data. This could be used to avoid unnecessary delays. Returns0 if data was sent successfully, or specific WSA error otherwise. |
(c) 2012 Lake of Soft