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); }
public override void Dispose() { TCPSocket.Dispose(); IPSocket.Dispose(); }
public override void Flush() { TCPSocket.Flush(); IPSocket.Flush(); }
public TCPSocketEventArgs(TCPSocket sSender) { this.Sender = sSender; }