public class SmbClient extends Object implements Client<LineOrientedRequest,NbtAddressResponse>
SmbClient class.
Constructor and Description |
---|
SmbClient() |
Modifier and Type | Method and Description |
---|---|
void |
close()
close
|
void |
connect(InetAddress address,
int port,
int timeout)
connect
|
NbtAddressResponse |
receiveBanner()
receiveBanner
|
NbtAddressResponse |
sendRequest(LineOrientedRequest request)
sendRequest
|
public void close()
close
close
in interface Closeable
close
in interface AutoCloseable
close
in interface Client<LineOrientedRequest,NbtAddressResponse>
public void connect(InetAddress address, int port, int timeout) throws IOException, Exception
connect
connect
in interface Client<LineOrientedRequest,NbtAddressResponse>
address
- a InetAddress
object.port
- a int.timeout
- a int.IOException
- if any.Exception
- if any.public NbtAddressResponse receiveBanner() throws IOException
receiveBanner
receiveBanner
in interface Client<LineOrientedRequest,NbtAddressResponse>
NbtAddressResponse
object.IOException
- if any.public NbtAddressResponse sendRequest(LineOrientedRequest request) throws IOException, Exception
sendRequest
sendRequest
in interface Client<LineOrientedRequest,NbtAddressResponse>
request
- a LineOrientedRequest
object.NbtAddressResponse
object.IOException
- if any.Exception
- if any.Copyright © 2017. All rights reserved.