Table of Contents

Class AsynchronousSocketChannel

Namespace
Java.Nio.Channels
Assembly
MASES.JNet.dll
public class AsynchronousSocketChannel : JVMBridgeBase<AsynchronousSocketChannel>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
Inheritance
JVMBridgeBase
AsynchronousSocketChannel
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Inherited Members
JVMBridgeBase<AsynchronousSocketChannel>.IsAssignableFrom(IJavaType)
JVMBridgeBase<AsynchronousSocketChannel>.IsAssignableFrom<T>()
JVMBridgeBase<AsynchronousSocketChannel>.Execute<T>(params T[])
JVMBridgeBase<AsynchronousSocketChannel>.DynBridgeClazz
JVMBridgeBase<AsynchronousSocketChannel>.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

AsynchronousSocketChannel()

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

[Obsolete("AsynchronousSocketChannel 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 AsynchronousSocketChannel()

AsynchronousSocketChannel(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("AsynchronousSocketChannel 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 AsynchronousSocketChannel(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 Future<Void> Connect(SocketAddress arg0)

Parameters

arg0 SocketAddress

SocketAddress

Returns

Future<Void>

Future

Connect<A, Arg2objectSuperA>(SocketAddress, A, CompletionHandler<Void, Arg2objectSuperA>)

public void Connect<A, Arg2objectSuperA>(SocketAddress arg0, A arg1, CompletionHandler<Void, Arg2objectSuperA> arg2) where Arg2objectSuperA : A

Parameters

arg0 SocketAddress

SocketAddress

arg1 A

A

arg2 CompletionHandler<Void, Arg2objectSuperA>

CompletionHandler

Type Parameters

A
Arg2objectSuperA

A

Open()

public static AsynchronousSocketChannel Open()

Returns

AsynchronousSocketChannel

AsynchronousSocketChannel

Exceptions

IOException

Open(AsynchronousChannelGroup)

public static AsynchronousSocketChannel Open(AsynchronousChannelGroup arg0)

Parameters

arg0 AsynchronousChannelGroup

AsynchronousChannelGroup

Returns

AsynchronousSocketChannel

AsynchronousSocketChannel

Exceptions

IOException

Provider()

public AsynchronousChannelProvider Provider()

Returns

AsynchronousChannelProvider

AsynchronousChannelProvider

Read(ByteBuffer)

public Future<Integer> Read(ByteBuffer arg0)

Parameters

arg0 ByteBuffer

ByteBuffer

Returns

Future<Integer>

Future

Read<A, Arg4objectSuperA>(ByteBuffer, long, TimeUnit, A, CompletionHandler<Integer, Arg4objectSuperA>)

public void Read<A, Arg4objectSuperA>(ByteBuffer arg0, long arg1, TimeUnit arg2, A arg3, CompletionHandler<Integer, Arg4objectSuperA> arg4) where Arg4objectSuperA : A

Parameters

arg0 ByteBuffer

ByteBuffer

arg1 long

long

arg2 TimeUnit

TimeUnit

arg3 A

A

arg4 CompletionHandler<Integer, Arg4objectSuperA>

CompletionHandler

Type Parameters

A
Arg4objectSuperA

A

Read<A, Arg2objectSuperA>(ByteBuffer, A, CompletionHandler<Integer, Arg2objectSuperA>)

public void Read<A, Arg2objectSuperA>(ByteBuffer arg0, A arg1, CompletionHandler<Integer, Arg2objectSuperA> arg2) where Arg2objectSuperA : A

Parameters

arg0 ByteBuffer

ByteBuffer

arg1 A

A

arg2 CompletionHandler<Integer, Arg2objectSuperA>

CompletionHandler

Type Parameters

A
Arg2objectSuperA

A

Read<A, Arg6objectSuperA>(ByteBuffer[], int, int, long, TimeUnit, A, CompletionHandler<Long, Arg6objectSuperA>)

public void Read<A, Arg6objectSuperA>(ByteBuffer[] arg0, int arg1, int arg2, long arg3, TimeUnit arg4, A arg5, CompletionHandler<Long, Arg6objectSuperA> arg6) where Arg6objectSuperA : A

Parameters

arg0 ByteBuffer[]

ByteBuffer

arg1 int

int

arg2 int

int

arg3 long

long

arg4 TimeUnit

TimeUnit

arg5 A

A

arg6 CompletionHandler<Long, Arg6objectSuperA>

CompletionHandler

Type Parameters

A
Arg6objectSuperA

A

SetOption(SocketOption, object)

public NetworkChannel SetOption(SocketOption arg0, object arg1)

Parameters

arg0 SocketOption

SocketOption

arg1 object

object

Returns

NetworkChannel

NetworkChannel

Exceptions

IOException

ShutdownInput()

public AsynchronousSocketChannel ShutdownInput()

Returns

AsynchronousSocketChannel

AsynchronousSocketChannel

Exceptions

IOException

ShutdownOutput()

public AsynchronousSocketChannel ShutdownOutput()

Returns

AsynchronousSocketChannel

AsynchronousSocketChannel

Exceptions

IOException

Write(ByteBuffer)

public Future<Integer> Write(ByteBuffer arg0)

Parameters

arg0 ByteBuffer

ByteBuffer

Returns

Future<Integer>

Future

Write<A, Arg4objectSuperA>(ByteBuffer, long, TimeUnit, A, CompletionHandler<Integer, Arg4objectSuperA>)

public void Write<A, Arg4objectSuperA>(ByteBuffer arg0, long arg1, TimeUnit arg2, A arg3, CompletionHandler<Integer, Arg4objectSuperA> arg4) where Arg4objectSuperA : A

Parameters

arg0 ByteBuffer

ByteBuffer

arg1 long

long

arg2 TimeUnit

TimeUnit

arg3 A

A

arg4 CompletionHandler<Integer, Arg4objectSuperA>

CompletionHandler

Type Parameters

A
Arg4objectSuperA

A

Write<A, Arg2objectSuperA>(ByteBuffer, A, CompletionHandler<Integer, Arg2objectSuperA>)

public void Write<A, Arg2objectSuperA>(ByteBuffer arg0, A arg1, CompletionHandler<Integer, Arg2objectSuperA> arg2) where Arg2objectSuperA : A

Parameters

arg0 ByteBuffer

ByteBuffer

arg1 A

A

arg2 CompletionHandler<Integer, Arg2objectSuperA>

CompletionHandler

Type Parameters

A
Arg2objectSuperA

A

Write<A, Arg6objectSuperA>(ByteBuffer[], int, int, long, TimeUnit, A, CompletionHandler<Long, Arg6objectSuperA>)

public void Write<A, Arg6objectSuperA>(ByteBuffer[] arg0, int arg1, int arg2, long arg3, TimeUnit arg4, A arg5, CompletionHandler<Long, Arg6objectSuperA> arg6) where Arg6objectSuperA : A

Parameters

arg0 ByteBuffer[]

ByteBuffer

arg1 int

int

arg2 int

int

arg3 long

long

arg4 TimeUnit

TimeUnit

arg5 A

A

arg6 CompletionHandler<Long, Arg6objectSuperA>

CompletionHandler

Type Parameters

A
Arg6objectSuperA

A

Operators

implicit operator AsynchronousByteChannel(AsynchronousSocketChannel)

public static implicit operator AsynchronousByteChannel(AsynchronousSocketChannel t)

Parameters

t AsynchronousSocketChannel

Returns

AsynchronousByteChannel

implicit operator NetworkChannel(AsynchronousSocketChannel)

public static implicit operator NetworkChannel(AsynchronousSocketChannel t)

Parameters

t AsynchronousSocketChannel

Returns

NetworkChannel