|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.python.core.io.IOBase
org.python.core.io.RawIOBase
org.python.core.io.SocketIOBase
org.python.core.io.DatagramSocketIO
public class DatagramSocketIO
Raw I/O implementation for datagram sockets.
| Field Summary |
|---|
| Fields inherited from class org.python.core.io.IOBase |
|---|
DEFAULT_BUFFER_SIZE |
| Constructor Summary | |
|---|---|
DatagramSocketIO(DatagramChannel socketChannel,
String mode)
Construct a DatagramSocketIO for the given DatagramChannel. |
|
| Method Summary | |
|---|---|
void |
close()
Flushes and closes the IO object. |
Channel |
getChannel()
Return the underlying Java nio Channel. |
int |
readinto(ByteBuffer buf)
Read up to buf.remaining() bytes into buf. |
long |
readinto(ByteBuffer[] bufs)
Read bytes into each of the specified ByteBuffers via scatter i/o. |
int |
write(ByteBuffer buf)
Write the given ByteBuffer to the IO stream. |
long |
write(ByteBuffer[] bufs)
Writes bytes from each of the specified ByteBuffers via gather i/o. |
| Methods inherited from class org.python.core.io.SocketIOBase |
|---|
readable, writable |
| Methods inherited from class org.python.core.io.RawIOBase |
|---|
fileno, read, readall |
| Methods inherited from class org.python.core.io.IOBase |
|---|
asInputStream, asOutputStream, checkClosed, checkReadable, checkWritable, closed, flush, isatty, seek, seek, tell, truncate |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DatagramSocketIO(DatagramChannel socketChannel,
String mode)
socketChannel - a DatagramChannel to wrapmode - a raw io socket mode String| Method Detail |
|---|
public int readinto(ByteBuffer buf)
RawIOBase
readinto in class RawIOBasebuf - a ByteBuffer to read bytes into
public long readinto(ByteBuffer[] bufs)
readinto in class RawIOBasebufs - an array of ByteBuffers to read bytes into
public int write(ByteBuffer buf)
RawIOBase
write in class RawIOBasebuf - a ByteBuffer value
public long write(ByteBuffer[] bufs)
write in class RawIOBasebufs - an array of ByteBuffers
public void close()
IOBase
close in class IOBasepublic Channel getChannel()
RawIOBase
getChannel in class RawIOBase
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||