The IpClient type exposes the following members.

Constructors

  Name Description
Public method IpClient(String, Int32)
Creates a new IpClient instance.
Public method IpClient(String, Int32, Int32)
Creates a new IpClient instance.

Methods

  Name Description
Public method Connect
Establishes connection with server.
Public method Disconnect
Closes connection with server.
Public method Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected method Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Protected method FireIpConnected
Fires IpClientConnectedEvent. This event is fired upon establishing a connection with the server.
Protected method FireIpDisconnected
Fires IpClientDisconnectedEvent. This event is fired upon closing connection with the server.
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method ToString
Returns a String that represents the current Object.
(Inherited from Object.)

Properties

  Name Description
Public property Hostname
The server hostname or IP address
Public property Port
The server port
Public property Socket
Gets a socket established after invoking the IpClient#Connect method.
Public property Stream
Gets InputStream from socket connection established with server. IpClient#Connect method must be invoked prior to invoking this method.
Public property Timeout
The timeout for establishing a connection in ms.

Events

  Name Description
Public event IpClientConnectedEvent
Occurs after a successful connection to the server.
Public event IpClientDisconnectedEvent
Occurs after connection to the server is released.

See Also