Inheritance: DccTransferClient
Exemple #1
0
 internal void ReceiveTimeoutNotify(DccReceiveClient client)
 {
     if (ReceiveTimeout != null)
     {
         ReceiveTimeout(client);
     }
 }
Exemple #2
0
        private void StartReceive(IrcUser user, FileInfo dest, IPEndPoint endPoint, long size, TimeSpan timeout)
        {
            var s = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
            DccReceiveClient client;

            if (dest.Exists)
            {
                client = new DccReceiveClient(this, user, s, endPoint, dest, size, timeout);
                IrcClient.CommandHandler.DccRequest(user.Nick, string.Format(
                                                        "RESUME \"\" {0} {1}",
                                                        endPoint.Port,
                                                        dest.Length
                                                        ));
            }
            else
            {
                client = new DccReceiveClient(this, user, s, endPoint, dest, size);
            }
        }
Exemple #3
0
 private void StartReceive(IrcUser user, FileInfo dest, IPEndPoint endPoint, long size, TimeSpan timeout)
 {
     var s = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
     DccReceiveClient client;
     if (dest.Exists)
     {
         client = new DccReceiveClient(this, user, s, endPoint, dest, size, timeout);
         IrcClient.CommandHandler.DccRequest(user.Nick, string.Format(
                                                     "RESUME \"\" {0} {1}",
                                                     endPoint.Port,
                                                     dest.Length
                                                     ));
     }
     else
     {
         client = new DccReceiveClient(this, user, s, endPoint, dest, size);
     }
 }
Exemple #4
0
 internal void ReceiveTimeoutNotify(DccReceiveClient client)
 {
     if (ReceiveTimeout != null)
         ReceiveTimeout(client);
 }