|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--SSF.OS.ProtocolSession
|
+--SSF.OS.UDP.udpSessionMaster
Main UDP ProtocolSession in the ProtocolGraph. Opens a UDP session when an application opens a UDP socket, and manages a list of open UDP sessions. Demultiplexes incoming UDP messages to appropriate sessions.
| Field Summary | |
int |
max_datagram_size
default maximum datagram size in virtual bytes |
| Fields inherited from class SSF.OS.ProtocolSession |
name, use |
| Constructor Summary | |
udpSessionMaster()
Constructors |
|
| Method Summary | |
void |
closeSession(udpSession udpsess)
close a UDP session - called by a socket |
void |
config(com.renesys.raceway.DML.Configuration cfg)
Supported DML attributes: |
udpSession |
FindSession(int locPort,
int destIpAdr,
int destPort)
Look for a session in the UDP session list by its identification of local port number, and remote IP address and port number. |
void |
init()
initialize the udpSessionMaster, get the instance of Socket session and IP session. |
udpSession |
openSession(udpSocket sock)
open a UDP session - called by a socket |
void |
printMsg(UDP_Header hdr)
print out the content of a UDP message |
boolean |
push(ProtocolMessage message,
ProtocolSession fromSession)
demux a UDP message from IP to proper UDP session |
| Methods inherited from class SSF.OS.ProtocolSession |
close, closed, debugIdentifier, inGraph, open, opened, pushAfterDelay, pushAfterDelayFailed, setGraph, version |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public int max_datagram_size
| Constructor Detail |
public udpSessionMaster()
| Method Detail |
public void init()
throws ProtocolException
init in class ProtocolSessionProtocolException
public void config(com.renesys.raceway.DML.Configuration cfg)
throws com.renesys.raceway.DML.configException
ProtocolSession [name udp use SSF.OS.UDP.udpSessionMaster
udpinit [
max_datagram_size %I # max UDP datagram size (payload bytes, int)
debug %S # print verbose UDP diagnostics, true/false
]
]
config in interface com.renesys.raceway.DML.Configurableconfig in class ProtocolSessioncom.renesys.raceway.DML.configExceptionpublic udpSession openSession(udpSocket sock)
public void closeSession(udpSession udpsess)
public udpSession FindSession(int locPort,
int destIpAdr,
int destPort)
public boolean push(ProtocolMessage message,
ProtocolSession fromSession)
throws ProtocolException
push in class ProtocolSessionProtocolExceptionpublic void printMsg(UDP_Header hdr)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||