Class udpStreamSession

All Implemented Interfaces:

public class udpStreamSession
extends ProtocolSession

Class executing a single client-server session.

Field Summary
Fields inherited from class SSF.OS.ProtocolSession
name, use
Constructor Summary
udpStreamSession(udpStreamClient client, int sessid, SSF.OS.UDP.test.udpStreamClient.serverData serv, long file_size)
Method Summary
 void begin()
          Class Methods
 void begin(Continuation caller)
 void clientDebug(java.lang.String str)
          preamble to client-side-only diagnostics
 boolean push(ProtocolMessage message, ProtocolSession fromSession)
          Routine to call when a message is being sent to ("pushed into") this ProtocolSession by another ProtocolSession.
 void sessionReport(java.lang.String str)
          preamble to end2end session diagnostics
Methods inherited from class SSF.OS.ProtocolSession
close, closed, config, debugIdentifier, inGraph, init, open, opened, pushAfterDelay, pushAfterDelayFailed, setGraph, version
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public udpStreamSession(udpStreamClient client,
                        int sessid,
                        SSF.OS.UDP.test.udpStreamClient.serverData serv,
                        long file_size)

Method Detail


public void begin()
Class Methods


public void begin(Continuation caller)


public void clientDebug(java.lang.String str)
preamble to client-side-only diagnostics


public void sessionReport(java.lang.String str)
preamble to end2end session diagnostics


public boolean push(ProtocolMessage message,
                    ProtocolSession fromSession)
             throws ProtocolException
Description copied from class: ProtocolSession
Routine to call when a message is being sent to ("pushed into") this ProtocolSession by another ProtocolSession. The pusher sends a reference to itself in the second argument. This push happens immediately, without any simulation time elapsing, regardless of other activities taking place in the ProtocolGraph.

If you desire "safe" interaction with other CPU activities, even though your push() consumes no measurable/modelable CPU cycles, define the "cpudelay true" attribute for the ProtocolGraph and use pushAfterDelay(message,fromSession,0.0). This will guarantee proper ordering; that is, the framework will wait until the CPU is free before proceeding with the requested push().

Specified by:
push in class ProtocolSession