C# Class OpenNos.Core.Networking.Communication.Scs.Communication.EndPoints.ScsEndPoint

Represents a server side end point in SCS.
Datei anzeigen Open project: OpenNos/OpenNos Class Usage Examples

Public Methods

Method Description
CreateClient ( ) : IScsClient

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

CreateEndPoint ( string endPointAddress ) : ScsEndPoint

Create a Scs End Point from a string. Address must be formatted as: protocol://address For example: tcp://89.43.104.179:10048 for a TCP endpoint with IP 89.43.104.179 and port 10048.

CreateServer ( ) : IScsServer

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

Method Details

CreateClient() public abstract method

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

CreateEndPoint() public static method

Create a Scs End Point from a string. Address must be formatted as: protocol://address For example: tcp://89.43.104.179:10048 for a TCP endpoint with IP 89.43.104.179 and port 10048.
public static CreateEndPoint ( string endPointAddress ) : ScsEndPoint
endPointAddress string Address to create endpoint
return ScsEndPoint

CreateServer() public abstract method

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