org.indy.udp
Class IdUDPBase

java.lang.Object
  |
  +--org.indy.BaseComponent
        |
        +--org.indy.IndyComponent
              |
              +--org.indy.udp.IdUDPBase

public abstract class IdUDPBase
extends IndyComponent

NB, Broadcast is ALWAYS enabled in Java UDP sockets, so there's no point including the property that appears in the Delphi version.


Inner classes inherited from class org.indy.IndyComponent
IndyComponent.WorkMode
 
Field Summary
static int UDP_BUFFERSIZE
          DOCUMENT ME!
 
Constructor Summary
IdUDPBase()
          Creates a new IdUDPBase object.
 
Method Summary
 boolean getActive()
          DOCUMENT ME!
 java.lang.String getHost()
          DOCUMENT ME!
 int getPort()
          DOCUMENT ME!
 int getReceiveTimeout()
          DOCUMENT ME!
 int receiveBuffer(byte[] b)
          DOCUMENT ME!
 int receiveBuffer(byte[] b, int timeout)
          DOCUMENT ME!
 int receiveBuffer(byte[] b, int off, int len)
          DOCUMENT ME!
protected  int receiveBuffer(byte[] b, int off, int len, java.net.InetAddress peer, int peerPort, int timeout)
          DOCUMENT ME!
 int receiveBuffer(byte[] b, int off, int len, int timeout)
          DOCUMENT ME!
 int receiveBuffer(byte[] b, int off, int len, java.lang.String peerIP, int peerPort)
          DOCUMENT ME!
 int receiveBuffer(byte[] b, int off, int len, java.lang.String peerIP, int peerPort, int timeout)
          DOCUMENT ME!
 int receiveBuffer(byte[] b, java.lang.String peerIP, int peerPort)
          DOCUMENT ME!
 int receiveBuffer(byte[] b, java.lang.String peerIP, int peerPort, int timeout)
          DOCUMENT ME!
 void setActive(boolean value)
          DOCUMENT ME!
 void setHost(java.lang.String newHost)
          DOCUMENT ME!
 void setPort(int port)
          DOCUMENT ME!
 void setReceiveTimeout(int receiveTimeout)
          DOCUMENT ME!
 
Methods inherited from class org.indy.IndyComponent
addComponentListener, doBeginWork, doBeginWork, doEndWork, doStatus, doStatus, doWork, getLocalName, removeComponentListener
 
Methods inherited from class org.indy.BaseComponent
getVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UDP_BUFFERSIZE

public static final int UDP_BUFFERSIZE
DOCUMENT ME!
Constructor Detail

IdUDPBase

public IdUDPBase()
Creates a new IdUDPBase object.
Method Detail

getActive

public boolean getActive()
DOCUMENT ME!
Returns:
DOCUMENT ME!

setActive

public void setActive(boolean value)
               throws IndyIOException
DOCUMENT ME!
Parameters:
value - DOCUMENT ME!
Throws:
IndyIOException - DOCUMENT ME!

receiveBuffer

protected final int receiveBuffer(byte[] b,
                                  int off,
                                  int len,
                                  java.net.InetAddress peer,
                                  int peerPort,
                                  int timeout)
                           throws IndyIOException
DOCUMENT ME!
Parameters:
b - DOCUMENT ME!
off - DOCUMENT ME!
len - DOCUMENT ME!
peer - DOCUMENT ME!
peerPort - DOCUMENT ME!
timeout - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
IndyIOException - DOCUMENT ME!

receiveBuffer

public int receiveBuffer(byte[] b,
                         int off,
                         int len,
                         java.lang.String peerIP,
                         int peerPort,
                         int timeout)
                  throws IndyIOException,
                         IndyUnknownHostException
DOCUMENT ME!
Parameters:
b - DOCUMENT ME!
off - DOCUMENT ME!
len - DOCUMENT ME!
peerIP - DOCUMENT ME!
peerPort - DOCUMENT ME!
timeout - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
IndyIOException - DOCUMENT ME!
IndyUnknownHostException - DOCUMENT ME!

receiveBuffer

public int receiveBuffer(byte[] b,
                         java.lang.String peerIP,
                         int peerPort,
                         int timeout)
                  throws IndyIOException,
                         IndyUnknownHostException
DOCUMENT ME!
Parameters:
b - DOCUMENT ME!
peerIP - DOCUMENT ME!
peerPort - DOCUMENT ME!
timeout - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
IndyIOException - DOCUMENT ME!
IndyUnknownHostException - DOCUMENT ME!

receiveBuffer

public int receiveBuffer(byte[] b,
                         int off,
                         int len,
                         java.lang.String peerIP,
                         int peerPort)
                  throws IndyIOException,
                         IndyUnknownHostException
DOCUMENT ME!
Parameters:
b - DOCUMENT ME!
off - DOCUMENT ME!
len - DOCUMENT ME!
peerIP - DOCUMENT ME!
peerPort - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
IndyIOException - DOCUMENT ME!
IndyUnknownHostException - DOCUMENT ME!

receiveBuffer

public int receiveBuffer(byte[] b,
                         java.lang.String peerIP,
                         int peerPort)
                  throws IndyIOException,
                         IndyUnknownHostException
DOCUMENT ME!
Parameters:
b - DOCUMENT ME!
peerIP - DOCUMENT ME!
peerPort - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
IndyIOException - DOCUMENT ME!
IndyUnknownHostException - DOCUMENT ME!

receiveBuffer

public int receiveBuffer(byte[] b,
                         int off,
                         int len,
                         int timeout)
                  throws IndyIOException
DOCUMENT ME!
Parameters:
b - DOCUMENT ME!
off - DOCUMENT ME!
len - DOCUMENT ME!
timeout - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
IndyIOException - DOCUMENT ME!
java.lang.IllegalStateException - DOCUMENT ME!

receiveBuffer

public int receiveBuffer(byte[] b,
                         int timeout)
                  throws IndyIOException
DOCUMENT ME!
Parameters:
b - DOCUMENT ME!
timeout - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
IndyIOException - DOCUMENT ME!

receiveBuffer

public int receiveBuffer(byte[] b,
                         int off,
                         int len)
                  throws IndyIOException
DOCUMENT ME!
Parameters:
b - DOCUMENT ME!
off - DOCUMENT ME!
len - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
IndyIOException - DOCUMENT ME!
java.lang.IllegalStateException - DOCUMENT ME!

receiveBuffer

public int receiveBuffer(byte[] b)
                  throws IndyIOException
DOCUMENT ME!
Parameters:
b - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
IndyIOException - DOCUMENT ME!

setReceiveTimeout

public void setReceiveTimeout(int receiveTimeout)
DOCUMENT ME!
Parameters:
receiveTimeout - DOCUMENT ME!

getReceiveTimeout

public int getReceiveTimeout()
DOCUMENT ME!
Returns:
DOCUMENT ME!

getHost

public java.lang.String getHost()
DOCUMENT ME!
Returns:
DOCUMENT ME!

setHost

public void setHost(java.lang.String newHost)
             throws IndyUnknownHostException
DOCUMENT ME!
Parameters:
newHost - DOCUMENT ME!
Throws:
IndyUnknownHostException - DOCUMENT ME!

getPort

public int getPort()
DOCUMENT ME!
Returns:
DOCUMENT ME!

setPort

public void setPort(int port)
DOCUMENT ME!
Parameters:
port - DOCUMENT ME!


Copyright © 2002-2002 IndyJ. All Rights Reserved.