Java.Nio.Channels.SocketChannel.Write Method
Writes bytes from all the given byte buffers to this socket channel.

Syntax

[Android.Runtime.Register("write", "([Ljava/nio/ByteBuffer;)J", "")]
public long Write (Java.Nio.ByteBuffer[] sources)

See Also

IGatheringByteChannel.Write(Java.Nio.ByteBuffer[])

Parameters

sources
the buffers containing bytes to write.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Nio.Channels.AsynchronousCloseExceptionif this channel is closed by another thread during this write operation.
Java.Nio.Channels.ClosedByInterruptExceptionif another thread interrupts the calling thread while this operation is in progress. The interrupt state of the calling thread is set and the channel is closed.
Java.Nio.Channels.ClosedChannelExceptionif this channel is closed.
Java.IO.IOExceptionif another I/O error occurs.
Java.Nio.Channels.NotYetConnectedExceptionif this channel is not yet connected.

Remarks

Writes bytes from all the given byte buffers to this socket channel.

Calling this method is equivalent to calling write(sources, 0, sources.length);

[Android Documentation]

Requirements

Namespace: Java.Nio.Channels
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1