Table of Contents

Class Socket

Namespace
Java.Net
Assembly
MASES.JNet.dll
public class Socket : Closeable, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, ICloseable, IAutoCloseable
Inheritance
JVMBridgeBase
JVMBridgeBase<AutoCloseable>
Socket
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

Socket()

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

public Socket()

Socket(String, int)

public Socket(String arg0, int arg1)

Parameters

arg0 String

String

arg1 int

int

Exceptions

UnknownHostException
IOException

Socket(String, int, InetAddress, int)

public Socket(String arg0, int arg1, InetAddress arg2, int arg3)

Parameters

arg0 String

String

arg1 int

int

arg2 InetAddress

InetAddress

arg3 int

int

Exceptions

IOException

Socket(InetAddress, int)

public Socket(InetAddress arg0, int arg1)

Parameters

arg0 InetAddress

InetAddress

arg1 int

int

Exceptions

IOException

Socket(InetAddress, int, InetAddress, int)

public Socket(InetAddress arg0, int arg1, InetAddress arg2, int arg3)

Parameters

arg0 InetAddress

InetAddress

arg1 int

int

arg2 InetAddress

InetAddress

arg3 int

int

Exceptions

IOException

Socket(Proxy)

public Socket(Proxy arg0)

Parameters

arg0 Proxy

Proxy

Socket(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 Socket(params object[] args)

Parameters

args object[]

Properties

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

Channel

public SocketChannel Channel { get; }

Property Value

SocketChannel

InetAddress

public InetAddress InetAddress { get; }

Property Value

InetAddress

InputStream

public InputStream InputStream { get; }

Property Value

InputStream

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

KeepAlive

public bool KeepAlive { get; set; }

Property Value

bool

LocalAddress

public InetAddress LocalAddress { get; }

Property Value

InetAddress

LocalPort

public int LocalPort { get; }

Property Value

int

LocalSocketAddress

public SocketAddress LocalSocketAddress { get; }

Property Value

SocketAddress

OOBInline

public bool OOBInline { get; set; }

Property Value

bool

OutputStream

public OutputStream OutputStream { get; }

Property Value

OutputStream

Port

public int Port { get; }

Property Value

int

ReceiveBufferSize

public int ReceiveBufferSize { get; set; }

Property Value

int

RemoteSocketAddress

public SocketAddress RemoteSocketAddress { get; }

Property Value

SocketAddress

ReuseAddress

public bool ReuseAddress { get; set; }

Property Value

bool

SendBufferSize

public int SendBufferSize { get; set; }

Property Value

int

SoLinger

public int SoLinger { get; }

Property Value

int

SoTimeout

public int SoTimeout { get; set; }

Property Value

int

TcpNoDelay

public bool TcpNoDelay { get; set; }

Property Value

bool

TrafficClass

public int TrafficClass { get; set; }

Property Value

int

Methods

Bind(SocketAddress)

public void Bind(SocketAddress arg0)

Parameters

arg0 SocketAddress

SocketAddress

Exceptions

IOException

Close()

public void Close()

Exceptions

IOException

Connect(SocketAddress)

public void Connect(SocketAddress arg0)

Parameters

arg0 SocketAddress

SocketAddress

Exceptions

IOException

Connect(SocketAddress, int)

public void Connect(SocketAddress arg0, int arg1)

Parameters

arg0 SocketAddress

SocketAddress

arg1 int

int

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

IsConnected()

public bool IsConnected()

Returns

bool

bool

IsInputShutdown()

public bool IsInputShutdown()

Returns

bool

bool

IsOutputShutdown()

public bool IsOutputShutdown()

Returns

bool

bool

SendUrgentData(int)

public void SendUrgentData(int arg0)

Parameters

arg0 int

int

Exceptions

IOException

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

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

Parameters

arg0 SocketOption<T>

SocketOption

arg1 T

T

Returns

Socket

Socket

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

SetSoLinger(bool, int)

public void SetSoLinger(bool arg0, int arg1)

Parameters

arg0 bool

bool

arg1 int

int

Exceptions

SocketException

SetSocketImplFactory(SocketImplFactory)

public static void SetSocketImplFactory(SocketImplFactory arg0)

Parameters

arg0 SocketImplFactory

SocketImplFactory

Exceptions

IOException

ShutdownInput()

public void ShutdownInput()

Exceptions

IOException

ShutdownOutput()

public void ShutdownOutput()

Exceptions

IOException

SupportedOptions()

public Set<SocketOption<object>> SupportedOptions()

Returns

Set<SocketOption<object>>

Set