com.flightpanels.scs
Interface INetworkConnector<Packet>

All Known Implementing Classes:
UDPConnector

public interface INetworkConnector<Packet>

Interface to low-level IO provider for sending data and notification of a BusConnector on reception of new data.

Version:
1.1
Author:
(c) 2009, 2010 by Philipp Münzel, Technische Universität Darmstadt, Department of Mathematics

Method Summary
 void send(Packet msg)
          To be called synchronously.
 void setListener(IBusConnector<Packet> connector)
           
 

Method Detail

setListener

void setListener(IBusConnector<Packet> connector)
Parameters:
connector - pointer to an instance to be notified when new packets arrive

send

void send(Packet msg)
To be called synchronously.

Parameters:
msg - pointer to data to send