|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jcifs.netbios.NbtConfig
This class is a wrapper for setting all properties of the jcifs netbios client.
Method Summary | |
static void |
setBroadcastAddress(InetAddress bCastAddress)
Sets the broadcast address the name service should use to resovle addresses. |
static void |
setCachePolicy(int cachePolicy)
Sets the address caching policy. |
static void |
setLocalAddress(InetAddress laddr)
Sets the local interface that the client should bind to. |
static void |
setLocalHostName(String name,
String scope)
Set's the local hostname the client presents when connecting to hosts. |
static void |
setNameServer(InetAddress nameserver)
Sets the nameserver(Samba, WINS, ...) the client should use to resolve addresses. |
static void |
setNodeType(int nodeType)
Sets the clients node type. |
static void |
setPort(int port)
Sets the port the client should run on. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Method Detail |
public static void setNameServer(InetAddress nameserver)
nameserver
- the nameserverpublic static void setBroadcastAddress(InetAddress bCastAddress)
bCastAddress
- the broadcast addresspublic static void setNodeType(int nodeType)
nodeType
- can be NbtAddress.B_NODE
, NbtAddress.P_NODE
, NbtAddress.M_NODE
, NbtAddress.H_NODE
public static void setCachePolicy(int cachePolicy)
cachePolicy
- is the number of seconds before a name should expire, 0 for no caching, or -1 for foreverpublic static void setLocalHostName(String name, String scope)
name
- the name the client should masquarade asscope
- 99.9% chance you don't need scope but if you do you will need to set thispublic static void setPort(int port)
port
- the port to run onpublic static void setLocalAddress(InetAddress laddr)
laddr
- the local address of the interfaceDatagramSocket
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |