예제 #1
0
            public Builder Clear()
            {
                _ttl                 = 0;
                _type                = TransportType.Unknown;
                _ssrc                = null;
                _source              = null;
                _destination         = null;
                _clientPorts         = null;
                _serverPorts         = null;
                _multicastPorts      = null;
                _interleavedChannels = null;
                _extras              = ImmutableList.CreateBuilder <string>();

                return(this);
            }
예제 #2
0
 internal TransportHeader(TransportType type,
                          string ssrc,
                          int ttl,
                          string source,
                          string destination,
                          PortPair clientPorts,
                          PortPair serverPorts,
                          PortPair multicastPorts,
                          PortPair interleavedChannels,
                          ImmutableList <string> extras)
 {
     Type                = type;
     SSRC                = ssrc;
     TTL                 = ttl;
     Source              = source;
     Destination         = destination;
     ClientPorts         = clientPorts;
     ServerPorts         = serverPorts;
     MulticastPorts      = multicastPorts;
     InterleavedChannels = interleavedChannels;
     Extras              = extras;
 }
예제 #3
0
            public Builder InterleavedChannels(PortPair pair)
            {
                _interleavedChannels = pair;

                return(this);
            }
예제 #4
0
            public Builder MulticastPorts(PortPair pair)
            {
                _multicastPorts = pair;

                return(this);
            }
예제 #5
0
            public Builder ServerPorts(PortPair pair)
            {
                _serverPorts = pair;

                return(this);
            }
예제 #6
0
            public Builder ClientPorts(PortPair pair)
            {
                _clientPorts = pair;

                return(this);
            }