Description | Hierarchy | Fields | Methods | Properties |
type unaWSA = class(unaObject)
Windows sockets manager class.
constructor create(active: bool = true; version: uint32 = $0101); |
|
destructor Destroy(); override; |
|
function getStatus(): int; |
|
function isActive(): bool; |
|
function shutdown(): int; |
|
function startup(version: uint32 = $0101): int; |
constructor create(active: bool = true; version: uint32 = $0101); |
|
Creates and initializes internal structures. If active = true (default) startups the Windows Sockets as well.
Parameters
|
destructor Destroy(); override; |
|
Shuts down Windows sockets if they were started. |
function getStatus(): int; |
|
Returns last status of startup().
ReturnsWSASYSNOTREADY, WSAVERNOTSUPPORTED, WSAEINPROGRESS, WSAEPROCLIM, WSAEFAULT, ... |
function isActive(): bool; |
|
Returns True if getStatus() = 0. ReturnsTrue if Windows sockets were started up successfully. |
function shutdown(): int; |
|
Cleanups the Windows sockets. |
function startup(version: uint32 = $0101): int; |
|
Startups the Windows sockets. Parameters
|
(c) 2012 Lake of Soft