예제 #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);
        }
예제 #2
0
 public override void Dispose()
 {
     TCPSocket.Dispose();
     IPSocket.Dispose();
 }
예제 #3
0
 public override void Flush()
 {
     TCPSocket.Flush();
     IPSocket.Flush();
 }
예제 #4
0
 public TCPSocketEventArgs(TCPSocket sSender)
 {
     this.Sender = sSender;
 }