public class Win32NetBIOSHostAnnouncer extends HostAnnouncer
The host announcer class periodically broadcasts a host announcement datagram to inform other Windows networking hosts of the local hosts existence and capabilities.
The Win32 NetBIOS host announcer sends out the announcements using datagrams sent via the Win32 Netbios() Netapi32 call.
Thread.State, Thread.UncaughtExceptionHandler
SHUTDOWN_COUNT, SHUTDOWN_WAIT, STARTING_INTERVAL
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
Win32NetBIOSHostAnnouncer(Win32NetBIOSSessionSocketHandler handler,
String domain,
int intval)
Create a host announcer.
|
Modifier and Type | Method and Description |
---|---|
int |
getLana()
Return the LANA
|
int |
getNameNumber()
Return the host name NetBIOS number
|
protected void |
initialize()
Initialize the host announcer.
|
boolean |
isNetworkEnabled()
Determine if the network connection used for the host announcement is valid
|
protected void |
sendAnnouncement(String hostName,
byte[] buf,
int offset,
int len)
Send an announcement broadcast.
|
addHostName, addHostNames, getComment, getDomain, getHostName, getInterval, getServerType, hasDebug, initHostAnnounceSMB, numberOfNames, run, setComment, setDebug, setDomain, setInterval, setServerType, shutdownAnnouncer, startAnnouncer
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public Win32NetBIOSHostAnnouncer(Win32NetBIOSSessionSocketHandler handler, String domain, int intval)
handler
- Win32NetBIOSSessionSocketHandlerdomain
- Domain name to announce tointval
- Announcement interval, in minutespublic final int getLana()
public final int getNameNumber()
protected void initialize() throws Exception
initialize
in class HostAnnouncer
Exception
public boolean isNetworkEnabled()
isNetworkEnabled
in class HostAnnouncer
protected void sendAnnouncement(String hostName, byte[] buf, int offset, int len) throws Exception
sendAnnouncement
in class HostAnnouncer
hostName
- Host name being announcedbuf
- Buffer containing the host announcement mailslot message.offset
- Offset to the start of the host announcement message.len
- Host announcement message length.Exception
Copyright © 2005–2017 Alfresco Software. All rights reserved.