Class AsynchronousSocketChannel
public class AsynchronousSocketChannel : JVMBridgeBase<AsynchronousSocketChannel>, IDynamicMetaObjectProvider, IJVMBridgeCore, IEquatable<IJVMBridgeBase>, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
- Inheritance
-
AsynchronousSocketChannel
- Implements
- Inherited Members
-
JVMBridgeBase<AsynchronousSocketChannel>.SExecute<TReturn>(Type, IJavaType, string, params object[])JVMBridgeBase.ReferenceEqualsJVM(JVMBridgeBase, JVMBridgeBase)JVMBridgeBase.Equals(IJVMBridgeBase)
- 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
argsobject[]
Properties
BridgeClassName
Java class name to be instantiated
public override string BridgeClassName { get; }
Property Value
IsBridgeAbstract
true if the BridgeClassName is an abstract class, i.e. cannot be created an instance
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
true if the BridgeClassName implements Closeable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
true if the BridgeClassName is an interface, i.e. does not have any public constructor
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
true if the BridgeClassName is a static class, i.e. does not have any public constructor
public override bool IsBridgeStatic { get; }
Property Value
LocalAddress
public SocketAddress LocalAddress { get; }
Property Value
RemoteAddress
public SocketAddress RemoteAddress { get; }
Property Value
Methods
Bind(SocketAddress)
public NetworkChannel Bind(SocketAddress arg0)
Parameters
Returns
Exceptions
Connect(SocketAddress)
public Future<Void> Connect(SocketAddress arg0)
Parameters
Returns
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
arg0SocketAddressarg1AAarg2CompletionHandler<Void, Arg2objectSuperA>
Type Parameters
AArg2objectSuperAA
Open()
public static AsynchronousSocketChannel Open()
Returns
Exceptions
Open(AsynchronousChannelGroup)
public static AsynchronousSocketChannel Open(AsynchronousChannelGroup arg0)
Parameters
Returns
Exceptions
Provider()
public AsynchronousChannelProvider Provider()
Returns
Read(ByteBuffer)
public Future<Integer> Read(ByteBuffer arg0)
Parameters
arg0ByteBuffer
Returns
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
arg0ByteBufferarg1longarg2TimeUnitarg3AAarg4CompletionHandler<Integer, Arg4objectSuperA>
Type Parameters
AArg4objectSuperAA
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
arg0ByteBufferarg1AAarg2CompletionHandler<Integer, Arg2objectSuperA>
Type Parameters
AArg2objectSuperAA
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
arg0ByteBuffer[]arg1intarg2intarg3longarg4TimeUnitarg5AAarg6CompletionHandler<Long, Arg6objectSuperA>
Type Parameters
AArg6objectSuperAA
SetOption(SocketOption, object)
public NetworkChannel SetOption(SocketOption arg0, object arg1)
Parameters
arg0SocketOptionarg1object
Returns
Exceptions
ShutdownInput()
public AsynchronousSocketChannel ShutdownInput()
Returns
Exceptions
ShutdownOutput()
public AsynchronousSocketChannel ShutdownOutput()
Returns
Exceptions
Write(ByteBuffer)
public Future<Integer> Write(ByteBuffer arg0)
Parameters
arg0ByteBuffer
Returns
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
arg0ByteBufferarg1longarg2TimeUnitarg3AAarg4CompletionHandler<Integer, Arg4objectSuperA>
Type Parameters
AArg4objectSuperAA
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
arg0ByteBufferarg1AAarg2CompletionHandler<Integer, Arg2objectSuperA>
Type Parameters
AArg2objectSuperAA
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
arg0ByteBuffer[]arg1intarg2intarg3longarg4TimeUnitarg5AAarg6CompletionHandler<Long, Arg6objectSuperA>
Type Parameters
AArg6objectSuperAA
Operators
implicit operator AsynchronousByteChannel(AsynchronousSocketChannel)
Converter from AsynchronousSocketChannel to AsynchronousByteChannel
public static implicit operator AsynchronousByteChannel(AsynchronousSocketChannel t)
Parameters
Returns
implicit operator NetworkChannel(AsynchronousSocketChannel)
Converter from AsynchronousSocketChannel to NetworkChannel
public static implicit operator NetworkChannel(AsynchronousSocketChannel t)