javacli
Class LocalSocket

java.lang.Object
  extended byjava.net.Socket
      extended byjavacli.LocalSocket

public class LocalSocket
extends java.net.Socket


Constructor Summary
LocalSocket()
           
LocalSocket(long implObj)
           
LocalSocket(java.lang.String address, int port)
           
 
Method Summary
 LocalSocket accept()
           
 void cancelAccept()
           
 void close()
           
static LocalSocket create(int port)
           
 java.io.InputStream getInputStream()
           
 java.io.OutputStream getOutputStream()
           
 void open(java.lang.String address, int port)
           
 void setSoLinger(boolean on, int linger)
           
 void setTcpNoDelay(boolean on)
           
 
Methods inherited from class java.net.Socket
bind, connect, connect, getChannel, getInetAddress, getKeepAlive, getLocalAddress, getLocalPort, getLocalSocketAddress, getOOBInline, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getTrafficClass, isBound, isClosed, isConnected, isInputShutdown, isOutputShutdown, sendUrgentData, setKeepAlive, setOOBInline, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSocketImplFactory, setSoTimeout, setTrafficClass, shutdownInput, shutdownOutput, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocalSocket

public LocalSocket(long implObj)
            throws java.net.SocketException

LocalSocket

public LocalSocket(java.lang.String address,
                   int port)
            throws java.net.SocketException

LocalSocket

public LocalSocket()
            throws java.net.SocketException
Method Detail

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Throws:
java.io.IOException

getOutputStream

public java.io.OutputStream getOutputStream()
                                     throws java.io.IOException
Throws:
java.io.IOException

setTcpNoDelay

public void setTcpNoDelay(boolean on)

setSoLinger

public void setSoLinger(boolean on,
                        int linger)

open

public void open(java.lang.String address,
                 int port)

close

public void close()

accept

public LocalSocket accept()
                   throws java.net.SocketException
Throws:
java.net.SocketException

cancelAccept

public void cancelAccept()

create

public static LocalSocket create(int port)
                          throws java.net.SocketException
Throws:
java.net.SocketException