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, writePacket
public 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 PacketHandler
IOException
- If a network error occurs.public SMBSrvPacket readPacket() throws IOException
readPacket
in class PacketHandler
IOException
public void writePacket(SMBSrvPacket pkt, int len, boolean writeRaw) throws IOException
writePacket
in class PacketHandler
pkt
- SMBSrvPacketlen
- intwriteRaw
- booleanIOException
public void flushPacket() throws IOException
flushPacket
in class PacketHandler
IOException
- If a network error occurspublic void closeHandler()
closeHandler
in class PacketHandler
Copyright © 2005–2018 Alfresco Software. All rights reserved.