All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ncsa.habanero.streams.HabaneroServerSocket

java.lang.Object
   |
   +----ncsa.habanero.streams.HabaneroServerSocket

public class HabaneroServerSocket
extends Object
HabaneroServerSocket holds a serverSocket and allows the server socket to be subclassed


Constructor Index

 o HabaneroServerSocket(int)
 o HabaneroServerSocket(int, Collobject)
 o HabaneroServerSocket(int, int)
 o HabaneroServerSocket(int, int, Collobject)

Method Index

 o accept()
 o close()
 o getInetAddress()
 o getLocalPort()
 o setSocketFactory(SocketImplFactory)
 o toString()

Constructors

 o HabaneroServerSocket
 public HabaneroServerSocket(int port) throws IOException, SocketException
Parameters:
port - port to be used for the socket
Throws: IOException
thown if unable to open the server socket
 o HabaneroServerSocket
 public HabaneroServerSocket(int port,
                             int wait) throws IOException, SocketException
Parameters:
port - port to be used for the socket
wait - the amount of time to listen for a connection
Throws: IOException
thown if unable to open the socket
 o HabaneroServerSocket
 public HabaneroServerSocket(int port,
                             Collobject co) throws IOException, SocketException
Parameters:
port - port to be used for the socket
co - the parent collobject
Throws: IOException
thown if unable to open the server socket
 o HabaneroServerSocket
 public HabaneroServerSocket(int port,
                             int wait,
                             Collobject co) throws IOException, SocketException
Parameters:
port - port to be used for the socket
wait - the amount of time to listen for a connection
co - the parent collobject
Throws: IOException
thown if unable to open the socket

Methods

 o accept
 public HabaneroSocket accept() throws IOException
Returns:
a new habanero socket
Throws: IOException
thrown if it is unable to accept the socket
 o close
 public void close() throws IOException
Returns:
Closes the serverSocket
Throws: IOException
unable to close the socket
 o getInetAddress
 public InetAddress getInetAddress()
Returns:
returns InetAddress that the serverSocket is connected to
 o getLocalPort
 public int getLocalPort()
Returns:
the port number that we are using
 o setSocketFactory
 public void setSocketFactory(SocketImplFactory fac) throws IOException
Parameters:
fac - the serverSocket impl factory
Throws: IOException
thown if unable to open the serverSocket
 o toString
 public String toString()
Returns:
returns a string representing the serverSocket
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index