public class InternalSocket extends Socket
Constructor and Description |
---|
InternalSocket(InputStream is,
OutputStream os)
server side
|
InternalSocket(int port)
client side
|
Modifier and Type | Method and Description |
---|---|
void |
bind(SocketAddress endpoint)
Deprecated.
unsupported
|
void |
close() |
void |
connect(SocketAddress endpoint)
Deprecated.
unsupported
|
void |
connect(SocketAddress endpoint,
int timeout)
Deprecated.
unsupported
|
SocketChannel |
getChannel()
Deprecated.
unsupported
|
InetAddress |
getInetAddress()
Deprecated.
unsupported
|
InputStream |
getInputStream() |
boolean |
getKeepAlive()
Deprecated.
unsupported
|
InetAddress |
getLocalAddress()
Deprecated.
unsupported
|
int |
getLocalPort()
Deprecated.
unsupported
|
SocketAddress |
getLocalSocketAddress()
Deprecated.
unsupported
|
boolean |
getOOBInline()
Deprecated.
unsupported
|
OutputStream |
getOutputStream() |
int |
getPort()
Deprecated.
unsupported
|
int |
getReceiveBufferSize()
Deprecated.
unsupported
|
SocketAddress |
getRemoteSocketAddress()
Deprecated.
unsupported
|
boolean |
getReuseAddress()
Deprecated.
unsupported
|
int |
getSendBufferSize()
Deprecated.
unsupported
|
static Socket |
getSocket(String host,
int port)
Convenience method to return either a Socket or an InternalSocket
|
int |
getSoLinger()
Deprecated.
unsupported
|
int |
getSoTimeout() |
boolean |
getTcpNoDelay()
Deprecated.
unsupported
|
int |
getTrafficClass()
Deprecated.
unsupported
|
boolean |
isBound()
Deprecated.
unsupported
|
boolean |
isClosed() |
boolean |
isConnected()
Deprecated.
unsupported
|
boolean |
isInputShutdown()
Deprecated.
unsupported
|
boolean |
isOutputShutdown()
Deprecated.
unsupported
|
void |
sendUrgentData(int data)
Deprecated.
unsupported
|
(package private) void |
setInputStream(InputStream is) |
void |
setKeepAlive(boolean on)
Deprecated.
unsupported
|
void |
setOOBInline(boolean on)
Deprecated.
unsupported
|
(package private) void |
setOutputStream(OutputStream os) |
void |
setReceiveBufferSize(int size)
Deprecated.
unsupported
|
void |
setReuseAddress(boolean on)
Deprecated.
unsupported
|
void |
setSendBufferSize(int size)
Deprecated.
unsupported
|
void |
setSoLinger(boolean on,
int linger)
Deprecated.
unsupported
|
void |
setSoTimeout(int timeout)
warning - unsupported
|
void |
setTcpNoDelay(boolean on)
Deprecated.
unsupported
|
void |
setTrafficClass(int cize)
Deprecated.
unsupported
|
void |
shutdownInput()
Deprecated.
unsupported
|
void |
shutdownOutput()
Deprecated.
unsupported
|
String |
toString() |
setPerformancePreferences, setSocketImplFactory
InternalSocket(InputStream is, OutputStream os)
public InternalSocket(int port) throws IOException
port
- > 0IOException
public static Socket getSocket(String host, int port) throws IOException
port
- > 0IOException
public InputStream getInputStream()
getInputStream
in class Socket
public OutputStream getOutputStream()
getOutputStream
in class Socket
void setInputStream(InputStream is)
void setOutputStream(OutputStream os)
public void close()
public void setSoTimeout(int timeout)
setSoTimeout
in class Socket
public int getSoTimeout()
getSoTimeout
in class Socket
public void bind(SocketAddress endpoint)
public void connect(SocketAddress endpoint)
public void connect(SocketAddress endpoint, int timeout)
public SocketChannel getChannel()
getChannel
in class Socket
public InetAddress getInetAddress()
getInetAddress
in class Socket
public boolean getKeepAlive()
getKeepAlive
in class Socket
public InetAddress getLocalAddress()
getLocalAddress
in class Socket
public int getLocalPort()
getLocalPort
in class Socket
public SocketAddress getLocalSocketAddress()
getLocalSocketAddress
in class Socket
public boolean getOOBInline()
getOOBInline
in class Socket
public int getReceiveBufferSize()
getReceiveBufferSize
in class Socket
public SocketAddress getRemoteSocketAddress()
getRemoteSocketAddress
in class Socket
public boolean getReuseAddress()
getReuseAddress
in class Socket
public int getSendBufferSize()
getSendBufferSize
in class Socket
public int getSoLinger()
getSoLinger
in class Socket
public boolean getTcpNoDelay()
getTcpNoDelay
in class Socket
public int getTrafficClass()
getTrafficClass
in class Socket
public boolean isConnected()
isConnected
in class Socket
public boolean isInputShutdown()
isInputShutdown
in class Socket
public boolean isOutputShutdown()
isOutputShutdown
in class Socket
public void sendUrgentData(int data)
sendUrgentData
in class Socket
public void setKeepAlive(boolean on)
setKeepAlive
in class Socket
public void setOOBInline(boolean on)
setOOBInline
in class Socket
public void setReceiveBufferSize(int size)
setReceiveBufferSize
in class Socket
public void setReuseAddress(boolean on)
setReuseAddress
in class Socket
public void setSendBufferSize(int size)
setSendBufferSize
in class Socket
public void setSoLinger(boolean on, int linger)
setSoLinger
in class Socket
public void setTcpNoDelay(boolean on)
setTcpNoDelay
in class Socket
public void setTrafficClass(int cize)
setTrafficClass
in class Socket
public void shutdownInput()
shutdownInput
in class Socket
public void shutdownOutput()
shutdownOutput
in class Socket