Crea sito


org.zu.ardulink.connection.proxy
Class NetworkProxyConnection

java.lang.Object
  extended by org.zu.ardulink.connection.proxy.NetworkProxyConnection
All Implemented Interfaces:
Connection, NetworkProxyMessages

public class NetworkProxyConnection
extends Object
implements Connection, NetworkProxyMessages

Ardulink - return to homepage

v0.6.1 Magnum PI

Author:
Luciano Zu project Ardulink http://www.ardulink.org/


Field Summary
static int DEFAULT_LISTENING_PORT
           
 
Fields inherited from interface org.zu.ardulink.connection.proxy.NetworkProxyMessages
CONNECT_CMD, GET_PORT_LIST_CMD, KO, NUMBER_OF_PORTS, OK, STOP_SERVER_CMD
 
Constructor Summary
NetworkProxyConnection(String host, int port)
           
 
Method Summary
 boolean connect(Object... params)
           
 boolean disconnect()
           
 List<String> getPortList()
           
 boolean isConnected()
           
 boolean isHandshakeComplete()
           
 void setConnectionContact(ConnectionContact contact)
           
 boolean writeSerial(int numBytes, int[] message)
           
 boolean writeSerial(String message)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_LISTENING_PORT

public static final int DEFAULT_LISTENING_PORT
See Also:
Constant Field Values
Constructor Detail

NetworkProxyConnection

public NetworkProxyConnection(String host,
                              int port)
                       throws IOException
Throws:
IOException
Method Detail

getPortList

public List<String> getPortList()
Specified by:
getPortList in interface Connection

connect

public boolean connect(Object... params)
Specified by:
connect in interface Connection

disconnect

public boolean disconnect()
Specified by:
disconnect in interface Connection

isConnected

public boolean isConnected()
Specified by:
isConnected in interface Connection

writeSerial

public boolean writeSerial(String message)
Specified by:
writeSerial in interface Connection

writeSerial

public boolean writeSerial(int numBytes,
                           int[] message)
Specified by:
writeSerial in interface Connection

setConnectionContact

public void setConnectionContact(ConnectionContact contact)
Specified by:
setConnectionContact in interface Connection

isHandshakeComplete

public boolean isHandshakeComplete()


Copyright © 2015. All rights reserved.