next up previous
Next: Common Up: Components Previous: Transport

Application

At the top of our network stack, we have the application entities, which make downcalls to the transport layer and receive upcalls from it, usually via SWANS sockets or streams that mimic their Java equivalents. The most generic and useful kind of application entity is a harness for regular Java applications. One can run standard, unmodified Java networking application atop SWANS. These Java applications operate within a context that includes the correct underlying transport implementation for the particular node. Thus, these applications can open regular communication sockets, which will actually transmit packets from the appropriate simulated node, through the simulated network. SWANS implements numerous socket and stream types in the jist.swans.app.net and jist.swans.app.io packages. Applications can also connect to lower-level entities. The heartbeat node discovery application, for example, operates at the network layer. It circumvents the transport layer and communicates directly with the network entity.

jist.swans.app.*
interface class description
AppInterface AppJava versatile application entity that allows regular Java network applications to be executed within SWANS
  AppHeartbeat runs heartbeat protocol for node discovery
item package implementations
socket net UdpSocket, TcpServerSocket, TcpSocket
stream io InputStream, OutputStream, Reader, Writer, InputStreamReader, OutputStreamWriter, BufferedReader, BufferedWriter


next up previous
Next: Common Up: Components Previous: Transport
2006-01-18