예제 #1
0
파일: Tcp.cs 프로젝트: nifanfa/Cosmos
        public Tcp(ushort localPort, ushort remotePort, Address localIp, Address remoteIp)
        {
            LocalPort     = localPort;
            RemotePort    = remotePort;
            LocalAddress  = localIp;
            RemoteAddress = remoteIp;

            TCB = new TransmissionControlBlock();
        }
예제 #2
0
 public Tcp(ushort localPort, ushort remotePort, Address localIp, Address remoteIp)
 {
     LocalEndPoint  = new EndPoint(localIp, localPort);
     RemoteEndPoint = new EndPoint(remoteIp, remotePort);
     TCB            = new TransmissionControlBlock();
 }