goodsjpi
Class LocalSocket

java.lang.Object
  |
  +--java.net.Socket
        |
        +--goodsjpi.LocalSocket

public class LocalSocket
extends java.net.Socket

Socket class wrapper using GOODS local windows socket implementation


Constructor Summary
LocalSocket()
           
LocalSocket(long implObj)
           
LocalSocket(java.lang.String address, int port)
           
 
Method Summary
 goodsjpi.LocalSocket accept()
           
 void cancelAccept()
           
 void close()
           
static goodsjpi.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
clone, equals, finalize, 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
Overrides:
getInputStream in class java.net.Socket
java.io.IOException

getOutputStream

public java.io.OutputStream getOutputStream()
                                     throws java.io.IOException
Overrides:
getOutputStream in class java.net.Socket
java.io.IOException

setTcpNoDelay

public void setTcpNoDelay(boolean on)
Overrides:
setTcpNoDelay in class java.net.Socket

setSoLinger

public void setSoLinger(boolean on,
                        int linger)
Overrides:
setSoLinger in class java.net.Socket

open

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

close

public void close()
Overrides:
close in class java.net.Socket

accept

public goodsjpi.LocalSocket accept()
                            throws java.net.SocketException
java.net.SocketException

cancelAccept

public void cancelAccept()

create

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