示例#1
0
文件: Socket.cs 项目: LipkeGu/bootpd
        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);
        }
示例#2
0
文件: Server.cs 项目: LipkeGu/bootpd
 internal abstract void DataSend(object sender, DataSendEventArgs e);
示例#3
0
文件: TFTP.cs 项目: LipkeGu/bootpd
        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();
            }
        }
示例#4
0
文件: DHCP.cs 项目: LipkeGu/bootpd
 internal override void DataSend(object sender, DataSendEventArgs e)
 {
 }