internal UdpEndpoint GetEndpoint(UdpTransceiver transceiver) { int port = transceiver.EffectivePort(); if (port == Port) { return(this); } else { return(new UdpEndpoint(Instance, Host, port, SourceAddress, McastInterface, McastTtl, _connect, ConnectionId, HasCompressionFlag)); } }
public Connection Connect(string connectionId) { var transceiver = new UdpTransceiver(_endpoint.Communicator, _addr, _endpoint.SourceAddress, _endpoint.MulticastInterface, _endpoint.MulticastTtl); return(new UdpConnection(_endpoint.Communicator.OutgoingConnectionFactory, _endpoint, new LegacyTransceiver(transceiver, _endpoint, null), this, connectionId, null)); }