Пример #1
0
 public bool Connect(string host, int port)
 {
     bool bres = false;
     if (_isConnect)
         return false;
     if (host != "" && port != 0)
     {
         _asyncSocket = new FtpSocket(this);
         _asyncSocket.Connect(host, port);
         bres = true;
     }
     return bres;
 }
Пример #2
0
 public void DisConnect()
 {
     if (_isConnect)
     {
         _asyncSocket.Close();
         _asyncSocket = null;
         _isConnect = false;
     }
 }
Пример #3
0
 public FtpHandler(FtpHelper ftpHelper)
 {
     _ftpHelper = ftpHelper;
     _asyncSocket = null;
 }