VCDoc
Class Tree

Unit
  VCDoc.unaSockets

Description
 

Contains Windows sockets version 1.1 wrapper classes.


Author
 

Lake


Version
 

2.5.2008.02 IOCP and WinSock 2.0 extentions


Types
 
Type Description
tIpQueryCallback  
unaSocketEvent Different events produced by unaSocks class.
unaSocksOnEventEvent Socks event handler type

Constants
 
Constant Description
c_defUdpConnTimeout default timeout for sockets "connected" to UDP server is 3 minutes
IP_ADD_MEMBERSHIP  
IP_DEFAULT_MULTICAST_LOOP  
IP_DEFAULT_MULTICAST_TTL  
IP_DROP_MEMBERSHIP  
IP_MAX_MEMBERSHIPS  
IP_MULTICAST_IF  
IP_MULTICAST_LOOP  
IP_MULTICAST_TTL  
SO_MAX_MSG_SIZE maximum message size

Variables
 
Variable Description
c_maxThreadPoolSize maximum number of threads in pool

Routines
 
Method Description
checkError  
getHostInfo Lookups host info.
getWSAObject Returns unaWSA class instance created by a call to startup(), or by unaSocks class.
httpQuery  
ipH2str Converts host byte order (little endian) unsigned 32 bits integer to string representing IP address (xxx.xxx.xxx.xxx).
ipN2str Converts network byte order (big endian) unsigned 32 bits integer to string representing IP address (xxx.xxx.xxx.xxx).
ipQuery  
listAddresses List all addresses assigned to a host.
lookupHost Lookups host name.
lookupHost Lookups host name. If the "list" parameter is not nil, it also lists all addresses assigned to a host.
lookupHost Lookups host name.
lookupPort Lookups port number.
lookupPort Lookups port number.
shutdown Shutdowns the Windows sockets by deleting the unaWsa class instance created in startup() routine.
startup Startups the Windows sockets by creating unaWsa class instance.
str2ipH Converts string representing IP address (xxx.xxx.xxx.xxx) into host byte order (little endian) unsigned 32 bits integer.
str2ipN Converts string representing IP address (xxx.xxx.xxx.xxx) into network byte order (big endian) unsigned 32 bits integer.

Classes/Records
 
Class Description
ip_mreq  
unaMulticastSocket  
unaSocket Base class implementing Windows socket.
unaSocketsConnections  
unaSocks This class is used to create server and client sockets and manage the connections.
unaSocksConnection This is base class for connection between two sockets.
unaSocksThread This thread is used to handle server or client connections.
unaSocksThreads  
unaTcpSocket This class encapsulates TCP socket implementation.
unaUdpSocket This class encapsulates UDP socket implementation.
unaWSA Windows sockets manager class.


(c) 2001-2008 Lake of Soft, Ltd
Created with DelphiCodeToDoc.