jcifs.netbios

Class NbtSocket


public class NbtSocket
extends Socket

Do not use this class. Writing to the OutputStream of this type of socket requires leaving a 4 byte prefix for the NBT header. IOW you must call write( buf, 4, len ). Calling write( buf, 0, len ) will generate an error.

Constructor Summary

NbtSocket()
NbtSocket(NbtAddress address, String calledName, int port, InetAddress localAddr, int localPort)
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()

Constructor Details

NbtSocket

public NbtSocket()

NbtSocket

public NbtSocket(NbtAddress address,
                 String calledName,
                 int port,
                 InetAddress localAddr,
                 int localPort)
            throws IOException

NbtSocket

public NbtSocket(NbtAddress address,
                 int port)
            throws IOException

NbtSocket

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

Method Details

close

public void close()
            throws IOException

getInputStream

public InputStream getInputStream()
            throws IOException

getLocalAddress

public InetAddress getLocalAddress()

getLocalPort

public int getLocalPort()

getNbtAddress

public NbtAddress getNbtAddress()

getOutputStream

public OutputStream getOutputStream()
            throws IOException

getPort

public int getPort()

toString

public String toString()