network
Class Communication

java.lang.Object
  extended by network.Communication

public abstract class Communication
extends Object

The component closest to the network level, responsible for sending data on the network and respecting the Teamshare security policies (communication is encrypted).


Field Summary
(package private)  Crypto crypto
          Uses crypto from the the security module to encrypt/decrypt communication.
 
Constructor Summary
Communication()
           
 
Method Summary
abstract  void sendData(Object data, ConnectivityInfo destination)
          Sends data over the network to the IP address and port given by the destination, first encrypting it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

crypto

Crypto crypto
Uses crypto from the the security module to encrypt/decrypt communication.

Constructor Detail

Communication

public Communication()
Method Detail

sendData

public abstract void sendData(Object data,
                              ConnectivityInfo destination)
Sends data over the network to the IP address and port given by the destination, first encrypting it.

Parameters:
data - - the data to be sent; the type is not relevant at this level
destination - - the connectivity information (IP address and port) of a remote service or another device.