Main Page   Packages   Class Hierarchy   Compound List   File List   Compound Members  

Session_Low Interface Reference

Inheritance diagram for Session_Low:

Inheritance graph
[legend]
List of all members.

Public Methods

void send (UnMarshaller message, Session_High session) throws JonathanException
void send (JonathanException exception, Session_High session)

Detailed Description

Session_Low is the type of sessions used to forward messages coming from the network to their actual recipient; Session_Low is also the type of interfaces represented by identifiers.

Sessions represent handles on particular communication channels: A session object is dynamically created by a protocol, and lets messages be sent and received through the communication channel it represents, using that protocol. Sessions have higher and lower interfaces, respectively used to send messages down and up a protocol stack.

Session_Low is also the type of interfaces exported to protocols, and designated by identifiers.

Definition at line 49 of file Session_Low.java.


Member Function Documentation

void Session_Low::send ( JonathanException e,
Session_High sender )
 

Sends an exception up a protocol stack.

This method is used to warn the target session that an exception has occurred on an incoming message. The provided session parameter represents the sender, and may possibly be used to send a reply if necessary. This session parameter may be null.

When this method is used, the target object must make sure that the provided session will be closed(if not null).

Parameters:
exception   the exception that occurred;
session   the sending session.

Reimplemented in EventChannelFactory::ConsumerDelegate, GIOPProtocol::ClientSession_Low, GIOPProtocol::ServerSession_Low, OneWaySkeleton, and RTPProtocol::RTPDecoder.

void Session_Low::send ( UnMarshaller unmarshaller,
Session_High sender )
 

Sends a message up a protocol stack.

This method is used to send an incoming message to its recipient. The provided session parameter represents the sender, and may possibly be used to send a reply if necessary. This session parameter may be null.

When this method is used, the target object must make sure that the provided message will be closed, as well as and the session (if not null).

Parameters:
message   the message to send up;
session   the sending session.
Exceptions:
org   .objectweb.jonathan.exceptions.JonathanException if the sending fails.

Reimplemented in EventChannelFactory::ConsumerDelegate, GIOPProtocol::ClientSession_Low, GIOPProtocol::ServerSession_Low, OneWaySkeleton, and RTPProtocol::RTPDecoder.

Referenced by TcpIpProtocol::Session::run(), MulticastIpProtocol::MulticastIpSession::run(), and RTPProtocol::RTPDecoder::send().


The documentation for this interface was generated from the following file:
Generated at Fri May 31 19:25:20 2002 for Jonathan by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001