private void RegisterSender(TcpClient client) { TcpHelper.CreateListener(NotifyAllListeners, client); }
static void Main(string[] args) { // Start the server TcpHelper.StartServer(1234); TcpHelper.Listen(); // Start listening. }
public void Start() { TcpHelper.StartListener(13000, RegisterSender); TcpHelper.StartListener(13001, client => listeners.Add(client)); }
private static void StartSocketServer() { TcpHelper.StartListening(Configuration); }