Hi, TcpSocketListener stops receive after first time.
public TcpSocketListener listener;
var listenPort = 8912;
listener = new TcpSocketListener();
listener.ConnectionReceived += DO;
AsyncHelpers.RunSync(async () => await listener.StartListeningAsync(listenPort));
I try to reinit this. Do not working:
listener.StopListeningAsync();
listener.Dispose();
listener = new TcpSocketListener();
listener.ConnectionReceived += DO;
AsyncHelpers.RunSync(async () => await listener.StartListeningAsync(8912));
listener.ConnectionReceived += DO;
I dont know, why
Hi, TcpSocketListener stops receive after first time.
public TcpSocketListener listener; var listenPort = 8912; listener = new TcpSocketListener(); listener.ConnectionReceived += DO; AsyncHelpers.RunSync(async () => await listener.StartListeningAsync(listenPort));
I try to reinit this. Do not working: listener.StopListeningAsync(); listener.Dispose(); listener = new TcpSocketListener(); listener.ConnectionReceived += DO; AsyncHelpers.RunSync(async () => await listener.StartListeningAsync(8912)); listener.ConnectionReceived += DO; I dont know, why