public class ReceiveChannelEndpoint extends UdpChannelTransport
bindAddress, connectAddress, context, endPointAddress, errorHandler, invalidPackets, isClosed, multicastTtl, receiveDatagramChannel, selectionKey, sendDatagramChannel, transportPoller, udpChannel
Constructor and Description |
---|
ReceiveChannelEndpoint(UdpChannel udpChannel,
DataPacketDispatcher dispatcher,
AtomicCounter statusIndicator,
MediaDriver.Context context) |
Modifier and Type | Method and Description |
---|---|
int |
addDestination(ReceiveDestinationTransport transport) |
void |
addPublicationImage(PublicationImage image) |
void |
addSubscription(int streamId) |
void |
addSubscription(int streamId,
int sessionId) |
void |
checkForReResolution(long nowNs,
DriverConductorProxy conductorProxy) |
void |
closeMultiRcvDestination(DataTransportPoller poller) |
void |
closeStatusIndicator() |
int |
decRefToStream(int streamId) |
long |
decRefToStreamAndSession(int streamId,
int sessionId) |
ReceiveDestinationTransport |
destination(int transportIndex) |
int |
destination(UdpChannel udpChannel) |
InetSocketAddress |
explicitControlAddress() |
boolean |
hasDestination(int transportIndex) |
boolean |
hasDestinationControl() |
boolean |
hasExplicitControl() |
boolean |
hasTag() |
int |
incRefToStream(int streamId) |
long |
incRefToStreamAndSession(int streamId,
int sessionId) |
void |
indicateActive() |
boolean |
isMulticast()
Is transport representing a multicast media or unicast
|
boolean |
isMulticast(int transportIndex) |
boolean |
matchesTag(UdpChannel udpChannel) |
int |
multicastTtl()
Get the multicast TTL value for sending datagrams on the channel.
|
int |
multicastTtl(int transportIndex) |
int |
onDataPacket(DataHeaderFlyweight header,
UnsafeBuffer buffer,
int length,
InetSocketAddress srcAddress,
int transportIndex) |
void |
onRttMeasurement(RttMeasurementFlyweight header,
UnsafeBuffer buffer,
int length,
InetSocketAddress srcAddress,
int transportIndex) |
void |
onSetupMessage(SetupFlyweight header,
UnsafeBuffer buffer,
int length,
InetSocketAddress srcAddress,
int transportIndex) |
void |
openChannel(DriverConductorProxy conductorProxy) |
String |
originalUriString() |
void |
possibleTtlAsymmetryEncountered() |
void |
removeCoolDown(int sessionId,
int streamId) |
void |
removeDestination(int transportIndex) |
void |
removePendingSetup(int sessionId,
int streamId) |
void |
removePublicationImage(PublicationImage publicationImage) |
void |
removeSubscription(int streamId) |
void |
removeSubscription(int streamId,
int sessionId) |
protected void |
send(ByteBuffer buffer,
int bytesToSend,
ImageConnection[] imageConnections) |
protected void |
send(ByteBuffer buffer,
int bytesToSend,
int transportIndex,
InetSocketAddress remoteAddress) |
void |
sendNakMessage(ImageConnection[] controlAddresses,
int sessionId,
int streamId,
int termId,
int termOffset,
int length) |
void |
sendRttMeasurement(ImageConnection[] controlAddresses,
int sessionId,
int streamId,
long echoTimestampNs,
long receptionDelta,
boolean isReply) |
void |
sendRttMeasurement(int transportIndex,
InetSocketAddress controlAddress,
int sessionId,
int streamId,
long echoTimestampNs,
long receptionDelta,
boolean isReply) |
void |
sendSetupElicitingStatusMessage(int transportIndex,
InetSocketAddress controlAddress,
int sessionId,
int streamId) |
void |
sendStatusMessage(ImageConnection[] controlAddresses,
int sessionId,
int streamId,
int termId,
int termOffset,
int windowLength,
short flags) |
int |
sendTo(ByteBuffer buffer,
InetSocketAddress remoteAddress)
Send contents of
ByteBuffer to the remote address. |
boolean |
shouldBeClosed() |
boolean |
shouldElicitSetupMessage() |
AtomicCounter |
statusIndicatorCounter() |
int |
statusIndicatorCounterId() |
int |
streamCount() |
long |
tag() |
UdpChannel |
udpChannel()
Return underlying
UdpChannel |
UdpChannel |
udpChannel(int transportIndex) |
void |
updateControlAddress(int transportIndex,
InetSocketAddress newAddress) |
protected void |
updateTimeOfLastActivityNs(long nowNs,
int transportIndex) |
void |
validateAllowsDestinationControl() |
bindAddressAndPort, close, isValidFrame, openDatagramChannel, receive, receiveDatagramChannel, receiveHook, registerForRead, sendError, sendHook, updateEndpoint
public ReceiveChannelEndpoint(UdpChannel udpChannel, DataPacketDispatcher dispatcher, AtomicCounter statusIndicator, MediaDriver.Context context)
public int sendTo(ByteBuffer buffer, InetSocketAddress remoteAddress)
ByteBuffer
to the remote address.buffer
- to send containing the payload.remoteAddress
- to send to send the payload to.public String originalUriString()
public AtomicCounter statusIndicatorCounter()
public int statusIndicatorCounterId()
public void indicateActive()
public void closeStatusIndicator()
public void closeMultiRcvDestination(DataTransportPoller poller)
public void openChannel(DriverConductorProxy conductorProxy)
public void possibleTtlAsymmetryEncountered()
public int incRefToStream(int streamId)
public int decRefToStream(int streamId)
public long incRefToStreamAndSession(int streamId, int sessionId)
public long decRefToStreamAndSession(int streamId, int sessionId)
public int streamCount()
public boolean shouldBeClosed()
public boolean hasExplicitControl()
public InetSocketAddress explicitControlAddress()
public boolean hasDestinationControl()
public void validateAllowsDestinationControl()
public boolean isMulticast()
UdpChannelTransport
isMulticast
in class UdpChannelTransport
public boolean isMulticast(int transportIndex)
public UdpChannel udpChannel()
UdpChannelTransport
UdpChannel
udpChannel
in class UdpChannelTransport
public UdpChannel udpChannel(int transportIndex)
public boolean hasTag()
public long tag()
public boolean matchesTag(UdpChannel udpChannel)
public int multicastTtl()
UdpChannelTransport
multicastTtl
in class UdpChannelTransport
public int multicastTtl(int transportIndex)
public int addDestination(ReceiveDestinationTransport transport)
public void removeDestination(int transportIndex)
public int destination(UdpChannel udpChannel)
public ReceiveDestinationTransport destination(int transportIndex)
public boolean hasDestination(int transportIndex)
public int onDataPacket(DataHeaderFlyweight header, UnsafeBuffer buffer, int length, InetSocketAddress srcAddress, int transportIndex)
public void onSetupMessage(SetupFlyweight header, UnsafeBuffer buffer, int length, InetSocketAddress srcAddress, int transportIndex)
public void onRttMeasurement(RttMeasurementFlyweight header, UnsafeBuffer buffer, int length, InetSocketAddress srcAddress, int transportIndex)
public void sendSetupElicitingStatusMessage(int transportIndex, InetSocketAddress controlAddress, int sessionId, int streamId)
public void sendRttMeasurement(int transportIndex, InetSocketAddress controlAddress, int sessionId, int streamId, long echoTimestampNs, long receptionDelta, boolean isReply)
public void sendStatusMessage(ImageConnection[] controlAddresses, int sessionId, int streamId, int termId, int termOffset, int windowLength, short flags)
public void sendNakMessage(ImageConnection[] controlAddresses, int sessionId, int streamId, int termId, int termOffset, int length)
public void sendRttMeasurement(ImageConnection[] controlAddresses, int sessionId, int streamId, long echoTimestampNs, long receptionDelta, boolean isReply)
public void removePendingSetup(int sessionId, int streamId)
public void removePublicationImage(PublicationImage publicationImage)
public void addSubscription(int streamId)
public void addSubscription(int streamId, int sessionId)
public void removeSubscription(int streamId)
public void removeSubscription(int streamId, int sessionId)
public void addPublicationImage(PublicationImage image)
public void removeCoolDown(int sessionId, int streamId)
public boolean shouldElicitSetupMessage()
public void checkForReResolution(long nowNs, DriverConductorProxy conductorProxy)
public void updateControlAddress(int transportIndex, InetSocketAddress newAddress)
protected void send(ByteBuffer buffer, int bytesToSend, ImageConnection[] imageConnections)
protected void send(ByteBuffer buffer, int bytesToSend, int transportIndex, InetSocketAddress remoteAddress)
protected void updateTimeOfLastActivityNs(long nowNs, int transportIndex)
Copyright © 2014-2020 Real Logic Limited. All Rights Reserved.