Class AsynchronousSocketChannel
public class AsynchronousSocketChannel : JVMBridgeBase<AsynchronousSocketChannel>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
- Inheritance
-
JVMBridgeBaseJVMBridgeBase<AsynchronousSocketChannel>AsynchronousSocketChannel
- Implements
-
IJVMBridgeCoreIJVMBridgeBaseStaticIJVMBridgeBaseIJVMBridgeDefinition
- Inherited Members
-
JVMBridgeBase<AsynchronousSocketChannel>.SExecute<TReturn>(Type, IJavaType, string, params object[])JVMBridgeBase<AsynchronousSocketChannel>.IsAssignableFrom(IJavaType)JVMBridgeBase<AsynchronousSocketChannel>.IsAssignableFrom<T>()JVMBridgeBase<AsynchronousSocketChannel>.Execute<T>(params T[])JVMBridgeBase<AsynchronousSocketChannel>.DynBridgeClazzJVMBridgeBase<AsynchronousSocketChannel>.BridgeClazzJVMBridgeBase.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.IExecuteWithSignature<TNewClass, TReturn, TConverter>(string, string, params object[])JVMBridgeBase.DynBridgeInstanceJVMBridgeBase.BridgeInstanceJVMBridgeBase.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
https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeBase_BridgeClassName.htm
public override string BridgeClassName { get; }
Property Value
IsBridgeAbstract
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
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
arg0
SocketAddressarg1
AA
arg2
CompletionHandler<Void, Arg2objectSuperA>
Type Parameters
A
Arg2objectSuperA
A
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
arg0
ByteBuffer
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
arg0
ByteBufferarg1
longarg2
TimeUnitarg3
AA
arg4
CompletionHandler<Integer, Arg4objectSuperA>
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
ByteBufferarg1
AA
arg2
CompletionHandler<Integer, Arg2objectSuperA>
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[]arg1
intarg2
intarg3
longarg4
TimeUnitarg5
AA
arg6
CompletionHandler<Long, Arg6objectSuperA>
Type Parameters
A
Arg6objectSuperA
A
SetOption(SocketOption, object)
public NetworkChannel SetOption(SocketOption arg0, object arg1)
Parameters
arg0
SocketOptionarg1
object
Returns
Exceptions
ShutdownInput()
public AsynchronousSocketChannel ShutdownInput()
Returns
Exceptions
ShutdownOutput()
public AsynchronousSocketChannel ShutdownOutput()
Returns
Exceptions
Write(ByteBuffer)
public Future<Integer> Write(ByteBuffer arg0)
Parameters
arg0
ByteBuffer
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
arg0
ByteBufferarg1
longarg2
TimeUnitarg3
AA
arg4
CompletionHandler<Integer, Arg4objectSuperA>
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
ByteBufferarg1
AA
arg2
CompletionHandler<Integer, Arg2objectSuperA>
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[]arg1
intarg2
intarg3
longarg4
TimeUnitarg5
AA
arg6
CompletionHandler<Long, Arg6objectSuperA>
Type Parameters
A
Arg6objectSuperA
A
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)