comp • gb.net • net

Net (gb.net)

This class provides constant definitions used by the rest of the classes in this component.

Most of them are linked with the Status property of Net classes. In that case:

  • Error values are always negative values.

  • An inactive value is always zero.

  • Activity is reflected with positive values.

You can determine if there was an error, by checking whether the Status property is negative.

This class is static.

Static methods

Constants
Format a string that contains an IP address.
Format  
This constant shows that a remote client is trying to connect with a server socket, and that the connection is being accepted.
Accepting  
This constant shows that a network object is working at this moment.
Active  
Const CannotAuthenticate As Integer = -16
CannotAuthenticate  
This error constant means that binding a ServerSocket to a specific interface failed.
CannotBindInterface  
This constant reflects that a network socket was unable to use (bind) to a port.
CannotBindSocket  
This constant reflects that a network object was unable to create a new socket, the system did not allow the operation to be performed.
CannotCreateSocket  
This constant reflects that a server socket was unable to start listening on a TCP port or a local path.
CannotListen  
This constant reflects that there was an error when trying to read data from a socket or a serial port.
CannotRead  
This constant shows that there was an error when trying to write data to a socket or a serial port.
CannotWrite  
This constant reflects that a socket, acting like a client, is currently connected to a remote server.
Connected  
This constant reflects that a socket, acting like a client, is trying to connect to a remote server.
Connecting  
This constant reflects that a remote server refused a connection from a client socket.
ConnectionRefused  
This constant reflects that an object from one of the Net classes failed to translate a host name to an IP address.
HostNotFound  
Constant used by Format for IPv4 addresses.
IPv4  
This constant reflects that a network object is doing nothing, it is inactive.
Inactive  
Defines an Internet domain socket.
Internet  
Defines a local or an Unix domain socket.
Local  
This constant reflects that a remote client is trying to connect with a server socket, and that connection must be accepted or rejected.
Pending  
This constant means that some data is being downloaded from the network.
ReceivingData  
Reflects that an object from one of the Net classes is trying to translate a host name to an IP address.
Searching  
Defines a local or Unix domain socket.
Unix