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, waitbind, 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, supportedOptionspublic NbtSocket()
public NbtSocket(NbtAddress address, int port) throws java.io.IOException
java.io.IOExceptionpublic NbtSocket(NbtAddress address, int port, java.net.InetAddress localAddr, int localPort) throws java.io.IOException
java.io.IOExceptionpublic NbtSocket(NbtAddress address, java.lang.String calledName, int port, java.net.InetAddress localAddr, int localPort) throws java.io.IOException
java.io.IOExceptionpublic NbtAddress getNbtAddress()
public java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in class java.net.Socketjava.io.IOExceptionpublic java.io.OutputStream getOutputStream()
throws java.io.IOException
getOutputStream in class java.net.Socketjava.io.IOExceptionpublic int getPort()
getPort in class java.net.Socketpublic java.net.InetAddress getLocalAddress()
getLocalAddress in class java.net.Socketpublic int getLocalPort()
getLocalPort in class java.net.Socketpublic java.lang.String toString()
toString in class java.net.Socketpublic void close()
throws java.io.IOException
close in class java.net.Socketjava.io.IOException