public Udp(int bClient) { m_bHost = bClient; for (int n = 0; n < NTC.PCK_LIST; ++n) { byte[] buf = new byte[NTC.PCK_MAX]; Array.Clear(buf, 0, buf.Length); m_sndB.Add(buf); } Array.Clear(m_rcvB, 0, m_rcvB.Length); m_sPck.Reset(); }
public TcpCln(uint nId) { m_aId = nId; for (int n = 0; n < NTC.PCK_LIST; ++n) { byte[] buf = new byte[NTC.PCK_MAX]; Array.Clear(buf, 0, buf.Length); m_sndB.Add(buf); } Array.Clear(m_rcvS, 0, m_rcvS.Length); m_sPck.Reset(); }