de.mid.innovator.net
Class InoNet

java.lang.Object
  extended by 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

Constructor Summary
InoNet(InetSocketAddress address, String ipstr)
           
InoNet(String host, int port)
           
 
Method Summary
 void connect()
           
 void disconnect()
           
 byte[] fileFromSocket()
           
 InetSocketAddress getSocketAddress()
           
 boolean isConnected()
           
protected  boolean isSocketConnected()
           
 byte[] receive()
           
 void send(InoTelegram tel)
           
 byte[] sendAndReceive(InoTelegram tel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

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