Beispiel #1
0
        public TCPIPStack(IPAddress ipaLocalAddress, IPAddress ipaRemoteAddress, int iLocalPort, int iRemotePort)
        {
            ipSocket  = new IPSocket(ipaRemoteAddress, ipaLocalAddress, eExNetworkLibrary.IP.IPProtocol.TCP);
            tcpSocket = new TCPSocket(iRemotePort, iLocalPort, ipSocket);

            bClosing   = false;
            oCloseLock = new object();

            tcpSocket.ChildSocket        = ipSocket;
            ipSocket.ParentSocket        = tcpSocket;
            tcpSocket.FrameDecapsulated += new FrameProcessedEventHandler(tcpSocket_FrameDecapsulated);
            ipSocket.FrameEncapsulated  += new FrameProcessedEventHandler(ipSocket_FrameEncapsulated);
        }
Beispiel #2
0
 public override void Dispose()
 {
     TCPSocket.Dispose();
     IPSocket.Dispose();
 }
Beispiel #3
0
 public override void Flush()
 {
     TCPSocket.Flush();
     IPSocket.Flush();
 }
Beispiel #4
0
 public TCPSocketEventArgs(TCPSocket sSender)
 {
     this.Sender = sSender;
 }