public void EndReceive() { if (row != null) { row.Close(); row = null; } }
public void StartReceive() { try { if (row != null) { row.Close(); } row = new RowSocket(); row.CreateAndBindSocket(myLocalIP); row.KeepRunning = true; row.OnPacketArrival += new RowSocket.PacketArrivedEventHandler(row_OnPacketArrival); row.Run(); } catch { } }