All Packages This Package Class Hierarchy Class Search Index
java.lang.Object | +----edu.utah.janos.nodeos.pj_ProtocolLayer | +----edu.utah.janos.nodeos.pj_ANEPStreamLayer | +----edu.utah.janos.nodeos.pj_TCPStreamLayer
Summary |
class pj_TCPStreamLayer extends edu.utah.janos.nodeos.pj_ANEPStreamLayer { // Fields 2 private final Hashtable streamAcceptors; private final Hashtable streamWriters; // Constructors 1 pj_TCPStreamLayer(); // Methods 9 void attachGenerator(PacketGenerator); void attachHandler(PacketHandler) throws IOException; AddressSpec createAddress(String) throws PacketAddressFormatException; PacketAddressMask createAddressMask(); void detachGenerator(PacketGenerator); void detachHandler(PacketHandler); void generatorReady(PacketGenerator); String getID(); void synchronousSend(PacketGenerator, pj_BufferHandle); // Inner Classes 3 static class pj_TCPStreamLayer.TCPStreamAcceptor static class pj_TCPStreamLayer.TCPStreamReader static class pj_TCPStreamLayer.TCPStreamWriter }
pj_TCPStreamLayer is a protocol layer implementation that sends ANEP packets over TCP.
Fields |
· streamAcceptors | Summary | Top |
private final Hashtable streamAcceptors
Used to map ports to acceptors.
· streamWriters | Summary | Top |
private final Hashtable streamWriters
Used to map destinations to already opened sockets.
Constructors |
· pj_TCPStreamLayer | Summary | Top |
pj_TCPStreamLayer()
Methods |
· getID | Summary | Top |
String getID()
- Overrides:
- getID in class pj_ProtocolLayer
· createAddress | Summary | Top |
AddressSpec createAddress(String addr) throws PacketAddressFormatException
- Overrides:
- createAddress in class pj_ProtocolLayer
· createAddressMask | Summary | Top |
PacketAddressMask createAddressMask()
- Overrides:
- createAddressMask in class pj_ProtocolLayer
· attachHandler | Summary | Top |
void attachHandler(PacketHandler ph) throws IOException
· detachHandler | Summary | Top |
void detachHandler(PacketHandler ph)
· attachGenerator | Summary | Top |
void attachGenerator(PacketGenerator pg)
· synchronousSend | Summary | Top |
void synchronousSend(PacketGenerator pg, pj_BufferHandle bh)
Synchronous send a packet, blocking until the send completes.
· generatorReady | Summary | Top |
void generatorReady(PacketGenerator pg)
Indicate that the generator is ready for an async send.
Just does a synchronous send inline, though.
· detachGenerator | Summary | Top |
void detachGenerator(PacketGenerator pg)
All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7