bool SendPacket(byte bPacket, string strArguments) { if (!m_ClientSocket.IsConnected() || !this.IsAuthorized) { return(false); } try { CPacket New_Packet = m_ClientSocket.CreatePacket(bPacket, strArguments); return(m_ClientSocket.SendPacket(New_Packet)); } catch { } return(false); }
public bool IsConnected() { return(m_ClientSocket.IsConnected()); }