public class Win32NetBIOSSessionSocketHandler extends SessionHandlerBase implements Runnable, LanaListener
Uses the Win32 Netbios() call to provide the low level session layer for better integration with Windows.
Modifier and Type | Field and Description |
---|---|
static long |
LANAPollingInterval |
ListenBacklog
Constructor and Description |
---|
Win32NetBIOSSessionSocketHandler(SMBServer srv,
boolean debug)
Class constructor
|
Win32NetBIOSSessionSocketHandler(SMBServer srv,
int lana,
boolean debug)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
void |
closeSessionHandler(NetworkServer server)
Close the session handler
|
static void |
createSessionHandlers(SMBServer server,
boolean sockDbg)
Create the Win32 NetBIOS session socket handlers for the main SMB/CIFS server
|
int |
getLANANumber()
Return the LANA number that is being used
|
long |
getLANAOfflinePollingInterval()
Return the LANA offline polling interval to check for the LANA coming back online
|
int |
getNameNumber()
Return the assigned NetBIOS name number
|
String |
getServerName()
Return the local server name
|
void |
initializeSessionHandler(NetworkServer server)
Initialize the session socket handler.
|
boolean |
isLANAValid()
Check if the LANA is valid and accepting incoming sessions or the associated network adapter
is unplugged/disabled/offline.
|
boolean |
isUsingWinsock()
Determine if Netbios() API calls or Winsock calls are being used
|
void |
lanaStatusChange(int lana,
boolean online)
LANA listener status change callback
|
void |
run()
Run the NetBIOS session socket handler
|
clearShutdown, getBindAddress, getHandlerName, getListenBacklog, getNextSessionId, getPort, getProtocolName, getServer, hasBindAddress, hasDebug, hasShutdown, setDebug, setPort, setShutdown, toString
public static final long LANAPollingInterval
public Win32NetBIOSSessionSocketHandler(SMBServer srv, boolean debug)
srv
- SMBServerdebug
- booleanpublic Win32NetBIOSSessionSocketHandler(SMBServer srv, int lana, boolean debug)
srv
- SMBServerlana
- intdebug
- booleanpublic final int getLANANumber()
public final long getLANAOfflinePollingInterval()
public final int getNameNumber()
public final String getServerName()
public final boolean isUsingWinsock()
public void initializeSessionHandler(NetworkServer server) throws IOException
initializeSessionHandler
in interface SessionHandlerInterface
initializeSessionHandler
in class SessionHandlerBase
server
- NetworkServerIOException
public final boolean isLANAValid()
public void closeSessionHandler(NetworkServer server)
closeSessionHandler
in interface SessionHandlerInterface
closeSessionHandler
in class SessionHandlerBase
server
- NetworkServerpublic void run()
public static final void createSessionHandlers(SMBServer server, boolean sockDbg)
server
- SMBServersockDbg
- booleanpublic void lanaStatusChange(int lana, boolean online)
lanaStatusChange
in interface LanaListener
lana
- intonline
- booleanCopyright © 2005–2018 Alfresco Software. All rights reserved.