C# Class OpenNos.Core.Networking.Communication.Scs.Communication.EndPoints.Tcp.ScsTcpEndPoint

Represens a TCP end point in SCS.
Inheritance: ScsEndPoint
Show file Open project: OpenNos/OpenNos Class Usage Examples

Public Methods

Method Description
CreateClient ( ) : IScsClient

Creates a Scs Client that uses this end point to connect to server.

CreateServer ( ) : IScsServer

Creates a Scs Server that uses this end point to listen incoming connections.

ScsTcpEndPoint ( int tcpPort ) : System

Creates a new ScsTcpEndPoint object with specified port number.

ScsTcpEndPoint ( string address ) : System

Creates a new ScsTcpEndPoint from a string address. Address format must be like IPAddress:Port (For example: 127.0.0.1:10085).

ScsTcpEndPoint ( string ipAddress, int port ) : System

Creates a new ScsTcpEndPoint object with specified IP address and port number.

ToString ( ) : string

Generates a string representation of this end point object.

Method Details

CreateClient() public method

Creates a Scs Client that uses this end point to connect to server.
public CreateClient ( ) : IScsClient
return IScsClient

CreateServer() public method

Creates a Scs Server that uses this end point to listen incoming connections.
public CreateServer ( ) : IScsServer
return IScsServer

ScsTcpEndPoint() public method

Creates a new ScsTcpEndPoint object with specified port number.
public ScsTcpEndPoint ( int tcpPort ) : System
tcpPort int Listening TCP Port for incoming connection requests on server
return System

ScsTcpEndPoint() public method

Creates a new ScsTcpEndPoint from a string address. Address format must be like IPAddress:Port (For example: 127.0.0.1:10085).
public ScsTcpEndPoint ( string address ) : System
address string TCP end point Address
return System

ScsTcpEndPoint() public method

Creates a new ScsTcpEndPoint object with specified IP address and port number.
public ScsTcpEndPoint ( string ipAddress, int port ) : System
ipAddress string IP address of the server
port int Listening TCP Port for incoming connection requests on server
return System

ToString() public method

Generates a string representation of this end point object.
public ToString ( ) : string
return string