Package org.openmuc.jeebus.ship.api
Interface ShipInterface
-
- All Known Implementing Classes:
Ship
public interface ShipInterface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ShipConnectionInterfaceopenConnection(java.lang.String ipAddr)opens a connection to a device/servervoidsetConnHandler(ConnectionHandler connHandler)sets a connection handler
-
-
-
Method Detail
-
openConnection
ShipConnectionInterface openConnection(java.lang.String ipAddr)
opens a connection to a device/server- Parameters:
ipAddr- the IP address of the device/server to connect to. Example: "127.0.0.1:4059"- Returns:
- an object to represent this particular connection to another device/server
-
setConnHandler
void setConnHandler(ConnectionHandler connHandler)
sets a connection handler- Parameters:
connHandler- connectionHandler to handle all interactions with SHIP peer
-
-