jcifs.netbios
Class NbtSocket

java.lang.Object
  |
  +--java.net.Socket
        |
        +--jcifs.netbios.NbtSocket

public class NbtSocket
extends Socket

This class represents a netbios TCP/IP socket. Under no conditions will users of jcifs need not be concerned with this class as netbios services are handled internally to the smb package. It is only public so the smb package can access it.


Constructor Summary
NbtSocket()
           
NbtSocket(NbtAddress address, int port)
           
NbtSocket(NbtAddress address, int port, InetAddress localAddr, int localPort)
           
 
Method Summary
 void close()
           
 InputStream getInputStream()
           
 InetAddress getLocalAddress()
           
 int getLocalPort()
           
 NbtAddress getNbtAddress()
           
 OutputStream getOutputStream()
           
 int getPort()
           
 String toString()
           
 
Methods inherited from class java.net.Socket
getInetAddress, getReceiveBufferSize, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, setReceiveBufferSize, setSendBufferSize, setSocketImplFactory, setSoLinger, setSoTimeout, setTcpNoDelay
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NbtSocket

public NbtSocket()

NbtSocket

public NbtSocket(NbtAddress address,
                 int port)
          throws IOException

NbtSocket

public NbtSocket(NbtAddress address,
                 int port,
                 InetAddress localAddr,
                 int localPort)
          throws IOException
Method Detail

getNbtAddress

public NbtAddress getNbtAddress()

getInputStream

public InputStream getInputStream()
                           throws IOException
Overrides:
getInputStream in class Socket

getOutputStream

public OutputStream getOutputStream()
                             throws IOException
Overrides:
getOutputStream in class Socket

getPort

public int getPort()
Overrides:
getPort in class Socket

getLocalAddress

public InetAddress getLocalAddress()
Overrides:
getLocalAddress in class Socket

getLocalPort

public int getLocalPort()
Overrides:
getLocalPort in class Socket

toString

public String toString()
Overrides:
toString in class Socket

close

public void close()
           throws IOException
Overrides:
close in class Socket