public Server( string ip, int port, bool misLittleEndian = true , Action <string, System.Object> onEndReceive = null , Action <string> onEndSend = null , Action <string> onConnected = null , Action <string> onDisConnected = null) { this.m_IP = ip; this.m_Port = port; this.OnEndReceive = onEndReceive; this.OnEndSend = onEndSend; this.OnConnected = onConnected; this.OnDisConnected = onDisConnected; isLittleEndian = misLittleEndian; socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); zSend = new ZSend(onEndSend: onEndSend); }