void Listen() { Thread listenThread = new Thread(() => { try { SocketData data = (SocketData)socket.Receive(); ProcessData(data); } catch { } }); listenThread.IsBackground = true; listenThread.Start(); }
void Listen() { Thread listenThread = new Thread(() => { try { SocketData data = (SocketData)socket.Receive(); ProcessData(data); } catch { } }); listenThread.IsBackground = true; listenThread.Start(); }