Exemplo n.º 1
0
 public TCPChannel(TcpConnectMode mode, IPAddress ip, int[] port, ProtocolType protocolType, bool packetOutOrder, int receivePort)
     : base(mode, ip, port, protocolType, packetOutOrder, receivePort)
 {
     //IsRunning = true;
     //buffer = new byte[RTP_RECEIVE_BUFFER_SIZE];
     //_receivePort = receivePort;
     //_remoteEP = new IPEndPoint(remoteEP.Address, receivePort);
     //Initialize(port[0], port[1]);
 }
Exemplo n.º 2
0
 public UDPChannel(TcpConnectMode mode, IPAddress ip, int[] port, ProtocolType protocolType, bool packetOutOrder, int receivePort)
     : base(mode, ip, port, protocolType, packetOutOrder, receivePort)
 {
     //_receivePort = receivePort;
     //_remoteEP = remoteEP;
     //_packetOutOrder = packetOutOrder;
     //_syncSource = Convert.ToUInt32(Crypto.GetRandomInt(0, 9999999));
     //_frameType = FrameTypesEnum.H264;
     //_protocolType = protocolType;
     //Initialize(port[0], port[1]);
 }
 public Channel(TcpConnectMode tcpMode, IPAddress ip, int[] port, ProtocolType protocolType, bool packetOutOrder, int receivePort)
 {
     _tcpMode        = tcpMode;
     _receivePort    = receivePort;
     _remoteEP       = new IPEndPoint(ip, receivePort);
     _packetOutOrder = packetOutOrder;
     _syncSource     = Convert.ToUInt32(Crypto.GetRandomInt(0, 9999999));
     _frameType      = FrameTypesEnum.H264;
     _protocolType   = protocolType;
     Initialize(port[0], port[1]);
 }