Hello,
I’m trying to set up a server using NetworkingCommsDotNet where I can accept Telnet clients, but I can’t understand how to do it properly. I’m using the following code:
public static void Init()
{
NetworkComms.AppendGlobalConnectionEstablishHandler(ConnectionEstablished, true);
NetworkComms.AppendGlobalIncomingPacketHandler<string>("Message", ReceivedData);
}
public static void StartListening()
{
Connection.StartListening(ConnectionType.TCP, new System.Net.IPEndPoint(System.Net.IPAddress.Parse(serverIP), serverPort));
}
private static void ConnectionEstablished(Connection _connection)
{
Logger.LogMessage("Connection established with " + _connection.ConnectionInfo.RemoteEndPoint.ToString());
}
What am I doing wrong?