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
@Deprecated public void bind(SocketAddress endpoint)
@Deprecated public void connect(SocketAddress endpoint)
@Deprecated public void connect(SocketAddress endpoint, int timeout)
@Deprecated public SocketChannel getChannel()
getChannel
in class Socket
@Deprecated public InetAddress getInetAddress()
getInetAddress
in class Socket
@Deprecated public boolean getKeepAlive()
getKeepAlive
in class Socket
@Deprecated public InetAddress getLocalAddress()
getLocalAddress
in class Socket
@Deprecated public int getLocalPort()
getLocalPort
in class Socket
@Deprecated public SocketAddress getLocalSocketAddress()
getLocalSocketAddress
in class Socket
@Deprecated public boolean getOOBInline()
getOOBInline
in class Socket
@Deprecated public int getPort()
@Deprecated public int getReceiveBufferSize()
getReceiveBufferSize
in class Socket
@Deprecated public SocketAddress getRemoteSocketAddress()
getRemoteSocketAddress
in class Socket
@Deprecated public boolean getReuseAddress()
getReuseAddress
in class Socket
@Deprecated public int getSendBufferSize()
getSendBufferSize
in class Socket
@Deprecated public int getSoLinger()
getSoLinger
in class Socket
@Deprecated public boolean getTcpNoDelay()
getTcpNoDelay
in class Socket
@Deprecated public int getTrafficClass()
getTrafficClass
in class Socket
@Deprecated public boolean isBound()
@Deprecated public boolean isConnected()
isConnected
in class Socket
@Deprecated public boolean isInputShutdown()
isInputShutdown
in class Socket
@Deprecated public boolean isOutputShutdown()
isOutputShutdown
in class Socket
@Deprecated public void sendUrgentData(int data)
sendUrgentData
in class Socket
@Deprecated public void setKeepAlive(boolean on)
setKeepAlive
in class Socket
@Deprecated public void setOOBInline(boolean on)
setOOBInline
in class Socket
@Deprecated public void setReceiveBufferSize(int size)
setReceiveBufferSize
in class Socket
@Deprecated public void setReuseAddress(boolean on)
setReuseAddress
in class Socket
@Deprecated public void setSendBufferSize(int size)
setSendBufferSize
in class Socket
@Deprecated public void setSoLinger(boolean on, int linger)
setSoLinger
in class Socket
@Deprecated public void setTcpNoDelay(boolean on)
setTcpNoDelay
in class Socket
@Deprecated public void setTrafficClass(int cize)
setTrafficClass
in class Socket
@Deprecated public void shutdownInput()
shutdownInput
in class Socket
@Deprecated public void shutdownOutput()
shutdownOutput
in class Socket