public TcpEvent(Formvoid father) { Father = father; ConnectServer(); if (soc == null) return; Thread t = new Thread(recvData); t.IsBackground = true; t.Start(); }
public udpevent(Formvoid ow) { owner = ow; Thread t = new Thread(recvData); t.Start(); }