Table of Contents

Class SocketChannel

Namespace
Java.Nio.Channels
Assembly
MASES.JNet.dll
public class SocketChannel : AbstractSelectableChannel, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
Inheritance
JVMBridgeBase
SocketChannel
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

SocketChannel()

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

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

SocketChannel(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("SocketChannel 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 SocketChannel(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 bool Connect(SocketAddress arg0)

Parameters

arg0 SocketAddress

SocketAddress

Returns

bool

bool

Exceptions

IOException

FinishConnect()

public bool FinishConnect()

Returns

bool

bool

Exceptions

IOException

IsConnected()

public bool IsConnected()

Returns

bool

bool

IsConnectionPending()

public bool IsConnectionPending()

Returns

bool

bool

Open()

public static SocketChannel Open()

Returns

SocketChannel

SocketChannel

Exceptions

IOException

Open(SocketAddress)

public static SocketChannel Open(SocketAddress arg0)

Parameters

arg0 SocketAddress

SocketAddress

Returns

SocketChannel

SocketChannel

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

SetOption(SocketOption, object)

public NetworkChannel SetOption(SocketOption arg0, object arg1)

Parameters

arg0 SocketOption

SocketOption

arg1 object

object

Returns

NetworkChannel

NetworkChannel

Exceptions

IOException

ShutdownInput()

public SocketChannel ShutdownInput()

Returns

SocketChannel

SocketChannel

Exceptions

IOException

ShutdownOutput()

public SocketChannel ShutdownOutput()

Returns

SocketChannel

SocketChannel

Exceptions

IOException

Socket()

public Socket Socket()

Returns

Socket

Socket

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(SocketChannel)

Converter from SocketChannel to ByteChannel

public static implicit operator ByteChannel(SocketChannel t)

Parameters

t SocketChannel

Returns

ByteChannel

implicit operator GatheringByteChannel(SocketChannel)

public static implicit operator GatheringByteChannel(SocketChannel t)

Parameters

t SocketChannel

Returns

GatheringByteChannel

implicit operator NetworkChannel(SocketChannel)

Converter from SocketChannel to NetworkChannel

public static implicit operator NetworkChannel(SocketChannel t)

Parameters

t SocketChannel

Returns

NetworkChannel

implicit operator ScatteringByteChannel(SocketChannel)

public static implicit operator ScatteringByteChannel(SocketChannel t)

Parameters

t SocketChannel

Returns

ScatteringByteChannel