de.mid.innovator.net
Class InoNet
java.lang.Object
de.mid.innovator.net.InoNet
- Direct Known Subclasses:
- SrvConnection
public class InoNet
- extends Object
This class enables Innovator Java clients to communicate via the TCP/IP network.
- Author:
- borschet
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InoNet
public InoNet(InetSocketAddress address,
String ipstr)
throws IllegalArgumentException,
UnknownHostException
- Throws:
IllegalArgumentException
UnknownHostException
InoNet
public InoNet(String host,
int port)
throws IllegalArgumentException,
InoNetException
- Throws:
IllegalArgumentException
InoNetException
connect
public void connect()
throws InoNetException
- Throws:
InoNetException
disconnect
public void disconnect()
throws InoNetException
- Throws:
InoNetException
fileFromSocket
public byte[] fileFromSocket()
throws InoNetException
- Throws:
InoNetException
getSocketAddress
public InetSocketAddress getSocketAddress()
isConnected
public boolean isConnected()
isSocketConnected
protected boolean isSocketConnected()
receive
public byte[] receive()
throws InoNetException
- Throws:
InoNetException
send
public void send(InoTelegram tel)
throws InoNetException
- Throws:
InoNetException
sendAndReceive
public byte[] sendAndReceive(InoTelegram tel)
throws InoNetException
- Throws:
InoNetException