Table of Contents

Class DatagramChannel

Namespace
Java.Nio.Channels
Assembly
MASES.JNet.dll
public class DatagramChannel : AbstractSelectableChannel, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
Inheritance
JVMBridgeBase
DatagramChannel
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Inherited Members
JVMBridgeBase<AbstractInterruptibleChannel>.IsAssignableFrom(IJavaType)
JVMBridgeBase<AbstractInterruptibleChannel>.IsAssignableFrom<T>()
JVMBridgeBase<AbstractInterruptibleChannel>.Execute<T>(params T[])
JVMBridgeBase<AbstractInterruptibleChannel>.DynBridgeClazz
JVMBridgeBase<AbstractInterruptibleChannel>.BridgeClazz
JVMBridgeBase.RuntimeClassNameOf<T>()
JVMBridgeBase.ClassNameOf<T>()
JVMBridgeBase.ClassOf<T>()
JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)
JVMBridgeBase.MonitorEnter()
JVMBridgeBase.MonitorExit()
JVMBridgeBase.IsInstanceOf(IJavaType)
JVMBridgeBase.IsInstanceOf<T>()
JVMBridgeBase.RuntimeIsInstanceOf<T>()
JVMBridgeBase.CastTo<TNewClass>()
JVMBridgeBase.CastDirect<TNewClass>()
JVMBridgeBase.Dispose()
JVMBridgeBase.ToString()
JVMBridgeBase.GetHashCode()
JVMBridgeBase.Notify()
JVMBridgeBase.NotifyAll()
JVMBridgeBase.Wait()
JVMBridgeBase.DynBridgeInstance
JVMBridgeBase.BridgeInstance
JVMBridgeBase.IsBridgeListener
Extension Methods

Constructors

DatagramChannel()

Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge

[Obsolete("DatagramChannel class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public DatagramChannel()

DatagramChannel(params object[])

Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class

[Obsolete("DatagramChannel class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public DatagramChannel(params object[] args)

Parameters

args object[]

Properties

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

IsBridgeAbstract

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

public override bool IsBridgeStatic { get; }

Property Value

bool

LocalAddress

public SocketAddress LocalAddress { get; }

Property Value

SocketAddress

RemoteAddress

public SocketAddress RemoteAddress { get; }

Property Value

SocketAddress

Methods

Bind(SocketAddress)

public NetworkChannel Bind(SocketAddress arg0)

Parameters

arg0 SocketAddress

SocketAddress

Returns

NetworkChannel

NetworkChannel

Exceptions

IOException

Connect(SocketAddress)

public DatagramChannel Connect(SocketAddress arg0)

Parameters

arg0 SocketAddress

SocketAddress

Returns

DatagramChannel

DatagramChannel

Exceptions

IOException

Disconnect()

public DatagramChannel Disconnect()

Returns

DatagramChannel

DatagramChannel

Exceptions

IOException

IsConnected()

public bool IsConnected()

Returns

bool

bool

Open()

public static DatagramChannel Open()

Returns

DatagramChannel

DatagramChannel

Exceptions

IOException

Open(ProtocolFamily)

public static DatagramChannel Open(ProtocolFamily arg0)

Parameters

arg0 ProtocolFamily

ProtocolFamily

Returns

DatagramChannel

DatagramChannel

Exceptions

IOException

Read(ByteBuffer)

public int Read(ByteBuffer arg0)

Parameters

arg0 ByteBuffer

ByteBuffer

Returns

int

int

Exceptions

IOException

Read(ByteBuffer[])

public long Read(ByteBuffer[] arg0)

Parameters

arg0 ByteBuffer[]

ByteBuffer

Returns

long

long

Exceptions

IOException

Read(ByteBuffer[], int, int)

public long Read(ByteBuffer[] arg0, int arg1, int arg2)

Parameters

arg0 ByteBuffer[]

ByteBuffer

arg1 int

int

arg2 int

int

Returns

long

long

Exceptions

IOException

Receive(ByteBuffer)

public SocketAddress Receive(ByteBuffer arg0)

Parameters

arg0 ByteBuffer

ByteBuffer

Returns

SocketAddress

SocketAddress

Exceptions

IOException

Send(ByteBuffer, SocketAddress)

public int Send(ByteBuffer arg0, SocketAddress arg1)

Parameters

arg0 ByteBuffer

ByteBuffer

arg1 SocketAddress

SocketAddress

Returns

int

int

Exceptions

IOException

SetOption(SocketOption, object)

public NetworkChannel SetOption(SocketOption arg0, object arg1)

Parameters

arg0 SocketOption

SocketOption

arg1 object

object

Returns

NetworkChannel

NetworkChannel

Exceptions

IOException

Socket()

public DatagramSocket Socket()

Returns

DatagramSocket

DatagramSocket

Write(ByteBuffer)

public int Write(ByteBuffer arg0)

Parameters

arg0 ByteBuffer

ByteBuffer

Returns

int

int

Exceptions

IOException

Write(ByteBuffer[])

public long Write(ByteBuffer[] arg0)

Parameters

arg0 ByteBuffer[]

ByteBuffer

Returns

long

long

Exceptions

IOException

Write(ByteBuffer[], int, int)

public long Write(ByteBuffer[] arg0, int arg1, int arg2)

Parameters

arg0 ByteBuffer[]

ByteBuffer

arg1 int

int

arg2 int

int

Returns

long

long

Exceptions

IOException

Operators

implicit operator ByteChannel(DatagramChannel)

Converter from DatagramChannel to ByteChannel

public static implicit operator ByteChannel(DatagramChannel t)

Parameters

t DatagramChannel

Returns

ByteChannel

implicit operator GatheringByteChannel(DatagramChannel)

public static implicit operator GatheringByteChannel(DatagramChannel t)

Parameters

t DatagramChannel

Returns

GatheringByteChannel

implicit operator MulticastChannel(DatagramChannel)

public static implicit operator MulticastChannel(DatagramChannel t)

Parameters

t DatagramChannel

Returns

MulticastChannel

implicit operator ScatteringByteChannel(DatagramChannel)

public static implicit operator ScatteringByteChannel(DatagramChannel t)

Parameters

t DatagramChannel

Returns

ScatteringByteChannel