private void ConnectCallBack(bool isSuccess, ErrorSockets error, string expection) { if (isSuccess) { sendThread = new Thread(LoopSending); sendThread.Start(); } else { this.m_callBackConnect(isSuccess, error, expection); } }
private void SendCallBack(bool isSuccess, ErrorSockets error, string expection) { if (!isSuccess) { m_callBackSend(isSuccess, error, expection); } //Debug.Log("send =="+error + expection); //Debug.Log(isSuccess); }
private void Add(ArrayList l, Socket sock) { if (!ErrorSockets.Contains(sock)) { l.Add(sock); ErrorSockets.Add(sock); } else if (!l.Contains(sock)) { l.Add(sock); } }
private void ReceiveCallBack(bool isSuccess, ErrorSockets error, string expection, byte[] byteData, string strMsg) { if (isSuccess) { ReceiveMsgToNetMsg(byteData); } else { // Debug.Log(error + expection); m_callBackReceive(isSuccess, error, expection, byteData, strMsg); } // Debug.Log(error + expection); }
private void DisConnectCallBack(bool isSuccess, ErrorSockets error, string expection) { if (isSuccess) { sendThread.Abort(); } else { this.m_callBackDisConnect(isSuccess, error, expection); //Debug.Log(error + expection); } // Debug.Log(error + expection); }
public bool InWrite(Socket sock) { return(WriteSockets.Contains(sock) || ErrorSockets.Contains(sock)); }
public bool InRead(Socket sock) { return(ReadSockets.Contains(sock) || ErrorSockets.Contains(sock)); }