com.enterprisedt.util.proxy
Interface StreamServerSocket

All Known Implementing Classes:
PlainServerSocket

public interface StreamServerSocket

Description

Version:
$Revision: 1.1 $
Author:
Bruce Blackshaw

Method Summary
 StreamSocket acceptConnection()
          Accept a connection on this socket
 void bind(java.net.SocketAddress endpoint)
           
 void close()
          Close the socket
 java.net.InetAddress getInetAddress()
          Returns the address to which the socket is connected.
 int getLocalPort()
          Returns the local port to which this socket is bound.
 int getReceiveBufferSize()
          Gets the value of SO_RCVBUF
 int getSoTimeout()
          Returns setting for SO_TIMEOUT.
 void setReceiveBufferSize(int size)
          Sets the SO_RCVBUF option
 void setSoTimeout(int timeout)
          Enable/disable SO_TIMEOUT with the specified timeout, in milliseconds.
 

Method Detail

acceptConnection

StreamSocket acceptConnection()
                              throws java.io.IOException
Accept a connection on this socket

Throws:
java.io.IOException

close

void close()
           throws java.io.IOException
Close the socket

Throws:
java.io.IOException

setSoTimeout

void setSoTimeout(int timeout)
                  throws java.io.IOException
Enable/disable SO_TIMEOUT with the specified timeout, in milliseconds.

Parameters:
timeout -
Throws:
java.net.SocketException
java.io.IOException

getSoTimeout

int getSoTimeout()
                 throws java.io.IOException
Returns setting for SO_TIMEOUT.

Throws:
java.io.IOException

getLocalPort

int getLocalPort()
Returns the local port to which this socket is bound.

Returns:
the local port

getInetAddress

java.net.InetAddress getInetAddress()
Returns the address to which the socket is connected.

Returns:
the remote IP address

getReceiveBufferSize

int getReceiveBufferSize()
                         throws java.net.SocketException
Gets the value of SO_RCVBUF

Throws:
java.net.SocketException

setReceiveBufferSize

void setReceiveBufferSize(int size)
                          throws java.net.SocketException
Sets the SO_RCVBUF option

Throws:
java.net.SocketException

bind

void bind(java.net.SocketAddress endpoint)
          throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2001-2009 Enterprise Distributed Technologies Ltd. All Rights Reserved.