Table of Contents

Class ServerSocket

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

ServerSocket()

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

public ServerSocket()

ServerSocket(int)

public ServerSocket(int arg0)

Parameters

arg0 int

int

Exceptions

IOException

ServerSocket(int, int)

public ServerSocket(int arg0, int arg1)

Parameters

arg0 int

int

arg1 int

int

Exceptions

IOException

ServerSocket(int, int, InetAddress)

public ServerSocket(int arg0, int arg1, InetAddress arg2)

Parameters

arg0 int

int

arg1 int

int

arg2 InetAddress

InetAddress

Exceptions

IOException

ServerSocket(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

public ServerSocket(params object[] args)

Parameters

args object[]

Properties

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

Channel

public ServerSocketChannel Channel { get; }

Property Value

ServerSocketChannel

InetAddress

public InetAddress InetAddress { get; }

Property Value

InetAddress

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

LocalPort

public int LocalPort { get; }

Property Value

int

LocalSocketAddress

public SocketAddress LocalSocketAddress { get; }

Property Value

SocketAddress

ReceiveBufferSize

public int ReceiveBufferSize { get; set; }

Property Value

int

ReuseAddress

public bool ReuseAddress { get; set; }

Property Value

bool

SoTimeout

public int SoTimeout { get; set; }

Property Value

int

Methods

Accept()

public Socket Accept()

Returns

Socket

Socket

Exceptions

IOException

Bind(SocketAddress)

public void Bind(SocketAddress arg0)

Parameters

arg0 SocketAddress

SocketAddress

Exceptions

IOException

Bind(SocketAddress, int)

public void Bind(SocketAddress arg0, int arg1)

Parameters

arg0 SocketAddress

SocketAddress

arg1 int

int

Exceptions

IOException

Close()

public void Close()

Exceptions

IOException

GetOption<T>(SocketOption<T>)

public T GetOption<T>(SocketOption<T> arg0)

Parameters

arg0 SocketOption<T>

SocketOption

Returns

T

T

Type Parameters

T

Exceptions

IOException

IsBound()

public bool IsBound()

Returns

bool

bool

IsClosed()

public bool IsClosed()

Returns

bool

bool

SetOption<T>(SocketOption<T>, T)

public ServerSocket SetOption<T>(SocketOption<T> arg0, T arg1)

Parameters

arg0 SocketOption<T>

SocketOption

arg1 T

T

Returns

ServerSocket

ServerSocket

Type Parameters

T

Exceptions

IOException

SetPerformancePreferences(int, int, int)

public void SetPerformancePreferences(int arg0, int arg1, int arg2)

Parameters

arg0 int

int

arg1 int

int

arg2 int

int

SetSocketFactory(SocketImplFactory)

public static void SetSocketFactory(SocketImplFactory arg0)

Parameters

arg0 SocketImplFactory

SocketImplFactory

Exceptions

IOException

SupportedOptions()

public Set<SocketOption<object>> SupportedOptions()

Returns

Set<SocketOption<object>>

Set