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.
SHUTDOWN_COUNT, SHUTDOWN_WAIT, STARTING_INTERVAL| Constructor and Description |
|---|
Win32NetBIOSHostAnnouncer(Win32NetBIOSSessionSocketHandler handler,
java.lang.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(java.lang.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, startAnnounceractiveCount, 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, yieldpublic Win32NetBIOSHostAnnouncer(Win32NetBIOSSessionSocketHandler handler, java.lang.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 java.lang.Exception
initialize in class HostAnnouncerjava.lang.Exceptionpublic boolean isNetworkEnabled()
isNetworkEnabled in class HostAnnouncerprotected void sendAnnouncement(java.lang.String hostName,
byte[] buf,
int offset,
int len)
throws java.lang.Exception
sendAnnouncement in class HostAnnouncerhostName - 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.java.lang.ExceptionCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.