//! Конструктор public CMessanger(int nServerID) { m_Data = new CData(); m_Settings = new CSettings(); m_nServerID = nServerID; m_nBufSize = 1024; }
public CSocketMessanger(string sCompName, int nPort, int nServerID) { m_SockType = SocketType.Stream; m_SockProtocol = ProtocolType.Tcp; m_sRemoteName = sCompName; m_nBufferSize = 4096; m_nRemotePort = nPort; m_bUdpConnect = false; m_ClientSocket = null; m_ResolvedHost = null; m_Destination = null; m_Buffer = new byte[m_nBufferSize]; m_nServerID = nServerID; m_Data = new CData(); m_Settings = new CSettings(); CSettings.SettingsStruct ss = new CSettings.SettingsStruct(); ss.m_nLogLevel = 1; m_Settings.Set(ss); }