|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is the interface which needs to be implemented by a transport layer implementation. By implementing Transport, the transport layer can be used with the rtp and rtpi libraries.
Method Summary | |
int |
getHeaderSize()
Get the header size for this transport (network+transport header!) |
int |
getTransportPayloadSize()
Returns the maximum payload size which can be transported without fragmentation by the transport implementation. |
void |
joinGroup()
Join the transport session. |
void |
leaveGroup()
Leave the transport session. |
void |
queryNetworkResources(int senderFree,
int receiverFree,
NotificationRecipient recipient)
This requests that a NotificationRecipient is informed when the network becomes idle. |
void |
quit()
This terminates the transport service |
void |
registerTransportRecipient(TransportRecipient transRec)
Register a recipient for the packets received by this tranport instance. |
void |
sendTransportPacket(TransportPacket packet)
Sends a TransportPacket. |
Method Detail |
public void quit()
public void registerTransportRecipient(TransportRecipient transRec)
transRec
- The transport recipient which should receive
incoming transport packets.public void joinGroup() throws java.io.IOException
public void leaveGroup()
public void sendTransportPacket(TransportPacket packet)
packet
- The packet to be sent.public int getHeaderSize()
public int getTransportPayloadSize()
public void queryNetworkResources(int senderFree, int receiverFree, NotificationRecipient recipient)
sendFree
- The boundary of the send data rate (bit/s) below which the network
is considered idle.receivFree
- The boundary of of the received data rate (bit/s) below which the
network is considered idle. This includes the data send. Therefore:
receivedFree=sendFree+xrecipient
- The notificationRecipient that is interested in receiving a
notification when the network becomes idle.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |