private void RemoteAssist_Socket_DataArrival(object sender, SockEventArgs e)
 {
     CSS.IM.Library.Class.msgAV msg = new CSS.IM.Library.Class.msgAV(e.Data);
     this.DataArrival(msg, CSS.IM.Library.Class.NatClass.FullCone, e.IP, e.Port);
 }
 /// <summary>
 /// UDP���ݵ����¼�
 /// </summary>
 /// <param name="e">UDP���ݲ���</param>
 private void sockUDP1_DataArrival(object sender,SockEventArgs  e)
 {
     //if (e.Data.Length < 10) return;
     msgFile msg = new msgFile(e.Data);
     this.DataArrival(msg,NatClass.FullCone, e.IP,e.Port);
 }
 private void asyncTCPClient1_OnError(object sender, SockEventArgs e)
 {
     //IMLibrary.Calculate.WirteLog("�ļ��������"+ e.ErrorCode + e.ErrorMessage );
 }
 private void asyncTCPClient1_OnDisconnected(object sender, SockEventArgs e)
 {
     //IMLibrary.Calculate.WirteLog("��������Ͽ�����");
 }
 private void asyncTCPClient1_OnDataArrival(object sender, SockEventArgs e)
 {
     //if (e.Data.Length < 10) return;
     msgFile msg = new msgFile(e.Data);
     this.DataArrival(msg,NatClass.Tcp ,null,0);
 }
 private void asyncTCPClient1_OnConnected(object sender,  SockEventArgs  e)
 {
     //IMLibrary.Calculate.WirteLog("������");
        msgFile msg = new msgFile((byte)ProtocolFileTransmit.GetFileTransmitProxyID, -1, -1, 0, new byte[1]);
     this.asyncTCPClient1.SendData(msg.getBytes());//�������������ת����ID��
 }