BindInternal |
This function binds a socket to a local port and IP.
|
BuildArray |
Returns a byte array of Size bytes filled with incoming buffer data.
|
CleanResolutionSystem |
Clean resolution system that is in charge of
asynchronous hostname resolutions. |
ConnectToIP |
Connect to a given 32 bits long ip
|
DestroySocket |
Destroys the socket if it exists and unregisters it
from control list. |
FreeMemory |
Free memory allocated by AllocateMemory |
GetLocalInfo |
Retrieves local info from a connected socket.
|
GetLocalPort |
Returns local port from a connected or bound socket.
|
GetRemoteInfo |
Retrieves remote info from a connected socket.
|
PostResolution |
When the system resolves a hostname in asynchronous way we
call this function to decide what to do with the result.
|
PostSocket |
This procedure is called by the WindowProc callback function.
|
ProcessOptions |
Retrieves some socket options.
If it is an UDP socket also sets SO_BROADCAST option. |
RecvData |
This function is to retrieve data from the buffer. If we are using TCP
then the data is retrieved from a local buffer (m_strRecvBuffer). If we
are using UDP the data is retrieved from winsock buffer.
This function returns number of bytes received, and move data from
the buffer into the data argument.
MOVE means that data will be removed from the buffer.
|
RecvDataToBuffer |
This function retrieves data from the Winsock buffer
into the class local buffer.
|
ResolveIfHostnameSync |
Resolves a host (if necessary) in synchronous way
If succeeds returns a 32 bits long IP,
strHostIP = readable IP string and lngErrorCode = 0
If fails returns vbNull,
strHostIP = vbNullString and lngErrorCode <> 0
|
SendBufferedData |
Send buffered data if we are using TCP protocol. |
SocketExists |
Tries to create a socket if there isnt one yet and registers
it to the control list.
|