public class Win32NetBIOSPacketHandler extends PacketHandler
Uses the Win32 Netbios() call to provide the low level session layer for better integration with Windows.
| Constructor and Description |
|---|
Win32NetBIOSPacketHandler(int lana,
int lsn,
String callerName,
CIFSPacketPool packetPool)
Class constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
availableBytes()
Return the count of available bytes in the receive input stream
|
void |
closeHandler()
Close the Win32 NetBIOS packet handler.
|
void |
flushPacket()
Flush the output socket
|
int |
getLANA()
Return the LANA number
|
int |
getLSN()
Return the NetBIOS session id
|
SMBSrvPacket |
readPacket()
Read a packet from the client
|
void |
writePacket(SMBSrvPacket pkt,
int len,
boolean writeRaw)
Write a packet to the client
|
getClientName, getPacketPool, getRemoteAddress, getShortName, hasClientName, hasDebug, hasRemoteAddress, isProtocol, isProtocolName, rethrowException, setClientName, setDebug, setRemoteAddress, writePacket, writePacketpublic Win32NetBIOSPacketHandler(int lana,
int lsn,
String callerName,
CIFSPacketPool packetPool)
lana - intlsn - intcallerName - StringpacketPool - CIFSPacketPoolpublic final int getLANA()
public final int getLSN()
public int availableBytes()
throws IOException
availableBytes in class PacketHandlerIOException - If a network error occurs.public SMBSrvPacket readPacket() throws IOException
readPacket in class PacketHandlerIOExceptionpublic void writePacket(SMBSrvPacket pkt, int len, boolean writeRaw) throws IOException
writePacket in class PacketHandlerpkt - SMBSrvPacketlen - intwriteRaw - booleanIOExceptionpublic void flushPacket()
throws IOException
flushPacket in class PacketHandlerIOException - If a network error occurspublic void closeHandler()
closeHandler in class PacketHandlerCopyright © 2005–2015 Alfresco Software. All rights reserved.