ewe.net
Class SocketBase

java.lang.Object
  extended byewe.util.Errorable
      extended byewe.io.BasicStreamObject
          extended byewe.io.StreamObject
              extended byewe.net.SocketBase
All Implemented Interfaces:
BasicStream, Stream, Streamable
Direct Known Subclasses:
Socket

public abstract class SocketBase
extends StreamObject


Nested Class Summary
protected  class SocketBase.SocketInputStream
           
protected  class SocketBase.SocketOutputStream
           
 
Field Summary
protected  boolean inputIsShutdown
           
protected  InputStream inputStream
           
protected  boolean outputIsShutdown
           
protected  OutputStream outputStream
           
 Object remoteHost
           
 int remotePort
           
 
Fields inherited from class ewe.io.StreamObject
napIterations, napTime, READWRITE_CLOSED, READWRITE_ERROR, READWRITE_WOULDBLOCK
 
Fields inherited from class ewe.io.BasicStreamObject
closed
 
Fields inherited from class ewe.util.Errorable
error
 
Constructor Summary
SocketBase()
           
 
Method Summary
 boolean getKeepAlive()
           
 int getReceiveBufferSize()
           
 int getSendBufferSize()
           
protected abstract  int getSocketParameter(int whichParameter)
           
 int getSoLinger()
           
 boolean getTcpNoDelay()
           
 void setKeepAlive(boolean on)
           
 void setReceiveBufferSize(int value)
           
 void setSendBufferSize(int value)
           
protected abstract  int setSocketParameter(int whichParameter, boolean booleanValue, int intValue)
           
 void setSoLinger(boolean on, int val)
           
 void setTcpNoDelay(boolean on)
           
 void shutdownInput()
           
 void shutdownOutput()
           
 
Methods inherited from class ewe.io.StreamObject
close, closeStream, doRead, doWrite, flush, isOpen, nap, nap, nonBlockingRead, nonBlockingWrite, read, readAByte, readBytes, readBytes, write, writeAByte, writeBytes, writeBytes
 
Methods inherited from class ewe.io.BasicStreamObject
getException, getName, read, read, throwIOException, toInputStream, toOutputStream, toStream, write, write
 
Methods inherited from class ewe.util.Errorable
returnError, returnError, returnError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, toString
 
Methods inherited from interface ewe.io.BasicStream
flushStream
 

Field Detail

remoteHost

public Object remoteHost

remotePort

public int remotePort

inputStream

protected InputStream inputStream

outputStream

protected OutputStream outputStream

inputIsShutdown

protected boolean inputIsShutdown

outputIsShutdown

protected boolean outputIsShutdown
Constructor Detail

SocketBase

public SocketBase()
Method Detail

getSocketParameter

protected abstract int getSocketParameter(int whichParameter)
                                   throws SocketException
Throws:
SocketException

setSocketParameter

protected abstract int setSocketParameter(int whichParameter,
                                          boolean booleanValue,
                                          int intValue)
                                   throws SocketException
Throws:
SocketException

shutdownOutput

public void shutdownOutput()
                    throws IOException
Throws:
IOException

shutdownInput

public void shutdownInput()
                   throws IOException
Throws:
IOException

getSoLinger

public int getSoLinger()
                throws SocketException
Throws:
SocketException

setSoLinger

public void setSoLinger(boolean on,
                        int val)
                 throws SocketException
Throws:
SocketException

getTcpNoDelay

public boolean getTcpNoDelay()
                      throws SocketException
Throws:
SocketException

setTcpNoDelay

public void setTcpNoDelay(boolean on)
                   throws SocketException
Throws:
SocketException

getKeepAlive

public boolean getKeepAlive()
                     throws SocketException
Throws:
SocketException

setKeepAlive

public void setKeepAlive(boolean on)
                  throws SocketException
Throws:
SocketException

getReceiveBufferSize

public int getReceiveBufferSize()
                         throws SocketException
Throws:
SocketException

getSendBufferSize

public int getSendBufferSize()
                      throws SocketException
Throws:
SocketException

setReceiveBufferSize

public void setReceiveBufferSize(int value)
                          throws SocketException
Throws:
SocketException

setSendBufferSize

public void setSendBufferSize(int value)
                       throws SocketException
Throws:
SocketException