INet - Windows Sockets (Raw Sockets)


CLASS aprINet

 

Description:

The aprINet Class provides a higher-level interface to the Windows Sockets library.

 

 

Variables

 

cErr

Text Error message of the last operation

 

Debug

Determines if Debug messages should be displayed

 

DebugTrace

Determines if a Call Trace should be included in Debug messages

 

LastAddress

N, IP Address in Decimal

 

LastHostName

C, Host or Domain Name

 

LastIP

C, IP Address in Dot Notation (ie 192.168.7.1)

 

nErr

Numerical Error of the last operation

 

Session

Holds the Initial Session ID (Socket) value

 

Methods

 

New()

Initialize the library for use by the calling process

 

Destroy()

Terminate use of the library by the calling process

 

 

Connect()

Establish a client connection with a remote server

 

ConnectEx()

Establish a client connection with a remote server

 

Disconnect()

Disconnect from the current server

 

Flush()

Flushes the internal send and recieve buffers used by the socket.

 

FormatAddress()

Converts a numeric IP address to a printable string in dot-notation

 

GetHostAddress()

Return the IP address assigned to the specified hostname

 

GetHostName()

Return the hostname assigned to the specified IP address

 

GetLocalAddress()

Return the local IP address and port number for a socket

 

GetLocalName()

Return the hostname assigned to the local system

 

GetOption()

Determine if a specific socket option has been enabled.

 

Read()

Read data from the socket

 

SetLastError()

Set the last error code

 

SetOption()

Enable or disable a specific socket option.

 

Trace()

Enable/Disable/Configure logging of socket-level calls to the trace log

 

Write()

Write data to the socket