public class PortNumberParameters extends Object
Traffic type | Port number expression |
---|---|
Discovery multicast | PB + DG * domainId + d0 |
Discovery unicast | PB + DG * domainId + d1 + PG * participantId |
User traffic multicast | PB + DG * domainId + d2 |
User traffic unicast | PB + DG * domainId + d3 + PG * participantId |
Constructor and Description |
---|
PortNumberParameters(int pb,
int dg,
int pg,
int d0,
int d1,
int d2,
int d3) |
Modifier and Type | Method and Description |
---|---|
int |
getD0()
d0 offset
|
int |
getD1()
d1 offset
|
int |
getD2()
d2 offset
|
int |
getD3()
d3 offset
|
int |
getDiscoveryMulticastPort(int domainId) |
int |
getDiscoveryUnicastPort(int domainId,
int participantId) |
int |
getDomainIdGain()
Gets the DomainId Gain (DG).
|
int |
getParticipantIdGain()
Gets the ParticipantId Gain (PG).
|
int |
getPortBase()
Gets the port base number (PB)-
|
int |
getUserdataMulticastPort(int domainId) |
int |
getUserdataUnicastPort(int domainId,
int participantId) |
String |
toString() |
public PortNumberParameters(int pb, int dg, int pg, int d0, int d1, int d2, int d3)
public int getPortBase()
public int getDomainIdGain()
public int getParticipantIdGain()
public int getD0()
public int getD1()
public int getD2()
public int getD3()
public int getDiscoveryMulticastPort(int domainId)
public int getDiscoveryUnicastPort(int domainId, int participantId)
public int getUserdataMulticastPort(int domainId)
public int getUserdataUnicastPort(int domainId, int participantId)
Copyright © 2016. All rights reserved.