public Frame(PumpStation _pumpStation, StationComponentTypeEnum _stationComponentsType)
     : base(_pumpStation, _stationComponentsType)
 {
     FrameType             = ComponentsValCalculator.GetFrameTypeByPumpsWeight(_pumpStation.mainPump.ComponentWeight);
     ComponentName         = ComponentsValCalculator.GetFramesFullName(_pumpStation);
     ComponentLocationPath = ComponentsValCalculator.GetFullPathToTheComponent(_pumpStation.componentsLocation, this);
 }
 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]);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Video frames use a header at the start of the RTP payload in order to break up a single video
 /// frame into multiple RTP packets. The RTP channel will need to know the type of header being
 /// used in order to determine when a full frame has been received.
 /// </summary>
 public void SetFrameType(FrameTypesEnum frameType)
 {
     _frameType = frameType;
 }