public final class NativeRawSocket extends Object
| Constructor and Description |
|---|
NativeRawSocket(int protocolFamily,
int protocol) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(InetAddress address) |
void |
close() |
int |
read(byte[] data,
int offset,
int length,
byte[] address) |
int |
write(InetAddress address,
byte[] data,
int offset,
int length) |
public NativeRawSocket(int protocolFamily,
int protocol)
throws IOException
IOExceptionpublic void bind(InetAddress address) throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionpublic int read(byte[] data,
int offset,
int length,
byte[] address)
throws IOException
IOExceptionpublic int write(InetAddress address, byte[] data, int offset, int length) throws IOException
IOExceptionCopyright © 2016. All rights reserved.