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