internal void OnDataSend(int bytessend, IPEndPoint endpoint, SocketType type) { var evtargs = new DataSendEventArgs(); evtargs.BytesSend = bytessend; evtargs.RemoteEndpoint = endpoint; if (this.DataSend != null) this.DataSend(this, evtargs); }
internal abstract void DataSend(object sender, DataSendEventArgs e);
internal override void DataSend(object sender, DataSendEventArgs e) { if (Clients.ContainsKey(e.RemoteEndpoint.Address) && Clients[e.RemoteEndpoint.Address].Stage == TFTPStage.Done) { Clients.Remove(e.RemoteEndpoint.Address); if (this.fs != null) this.fs.Close(); if (this.bs != null) this.bs.Close(); } }
internal override void DataSend(object sender, DataSendEventArgs e) { }