public class NbtSocket
extends java.net.Socket
Constructor | Description |
---|---|
NbtSocket() |
|
NbtSocket(NbtAddress address,
int port) |
|
NbtSocket(NbtAddress address,
int port,
java.net.InetAddress localAddr,
int localPort) |
|
NbtSocket(NbtAddress address,
java.lang.String calledName,
int port,
java.net.InetAddress localAddr,
int localPort) |
Modifier and Type | Method | Description |
---|---|---|
void |
close() |
|
java.io.InputStream |
getInputStream() |
|
java.net.InetAddress |
getLocalAddress() |
|
int |
getLocalPort() |
|
NbtAddress |
getNbtAddress() |
|
java.io.OutputStream |
getOutputStream() |
|
int |
getPort() |
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
bind, connect, connect, getChannel, getInetAddress, getKeepAlive, getLocalSocketAddress, getOOBInline, getOption, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getTrafficClass, isBound, isClosed, isConnected, isInputShutdown, isOutputShutdown, sendUrgentData, setKeepAlive, setOOBInline, setOption, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSocketImplFactory, setSoLinger, setSoTimeout, setTcpNoDelay, setTrafficClass, shutdownInput, shutdownOutput, supportedOptions
public NbtSocket()
public NbtSocket(NbtAddress address, int port) throws java.io.IOException
java.io.IOException
public NbtSocket(NbtAddress address, int port, java.net.InetAddress localAddr, int localPort) throws java.io.IOException
java.io.IOException
public NbtSocket(NbtAddress address, java.lang.String calledName, int port, java.net.InetAddress localAddr, int localPort) throws java.io.IOException
java.io.IOException
public NbtAddress getNbtAddress()
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in class java.net.Socket
java.io.IOException
public java.io.OutputStream getOutputStream() throws java.io.IOException
getOutputStream
in class java.net.Socket
java.io.IOException
public int getPort()
getPort
in class java.net.Socket
public java.net.InetAddress getLocalAddress()
getLocalAddress
in class java.net.Socket
public int getLocalPort()
getLocalPort
in class java.net.Socket
public java.lang.String toString()
toString
in class java.net.Socket
public void close() throws java.io.IOException
close
in class java.net.Socket
java.io.IOException