jGCS Documentation

net.sf.jgcs
Interface Message


public interface Message

This class defines a Message. Messages exchanged using the underlying toolkit must implement this interface. Instances of this interface must be retrieved from the DataSession.

Version:
1.0
Author:
Nuno Carvalho

Method Summary
 byte[] getPayload()
          Gets the payload from the message.
 java.net.SocketAddress getSenderAddress()
          Gets the sender address.
 void setPayload(byte[] buffer)
          Sets the payload for the message.
 void setSenderAddress(java.net.SocketAddress sender)
          Sets the sender address.
 

Method Detail

setPayload

void setPayload(byte[] buffer)
Sets the payload for the message.

Parameters:
buffer - The payload to be stored in the message.

getPayload

byte[] getPayload()
Gets the payload from the message.

Returns:
the payload from the message.

getSenderAddress

java.net.SocketAddress getSenderAddress()
Gets the sender address.

Returns:
the sender address

setSenderAddress

void setSenderAddress(java.net.SocketAddress sender)
Sets the sender address.

Parameters:
sender - the sender address.

jGCS Documentation

Copyright (c) 2006, Universidade de Lisboa
For updates and related information please see jGCS home page