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
-
HabaneroServerSocket(int)
-
-
HabaneroServerSocket(int, Collobject)
-
-
HabaneroServerSocket(int, int)
-
-
HabaneroServerSocket(int, int, Collobject)
-
-
accept()
-
-
close()
-
-
getInetAddress()
-
-
getLocalPort()
-
-
setSocketFactory(SocketImplFactory)
-
-
toString()
-
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
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
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
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
accept
public HabaneroSocket accept() throws IOException
- Returns:
- a new habanero socket
- Throws: IOException
- thrown if it is unable to accept the socket
close
public void close() throws IOException
- Returns:
- Closes the serverSocket
- Throws: IOException
- unable to close the socket
getInetAddress
public InetAddress getInetAddress()
- Returns:
- returns InetAddress that the serverSocket is connected to
getLocalPort
public int getLocalPort()
- Returns:
- the port number that we are using
setSocketFactory
public void setSocketFactory(SocketImplFactory fac) throws IOException
- Parameters:
- fac - the serverSocket impl factory
- Throws: IOException
- thown if unable to open the serverSocket
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