Table of Contents

Class DatagramSocket

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

DatagramSocket()

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

public DatagramSocket()

DatagramSocket(SocketAddress)

public DatagramSocket(SocketAddress arg0)

Parameters

arg0 SocketAddress

SocketAddress

Exceptions

SocketException

DatagramSocket(int)

public DatagramSocket(int arg0)

Parameters

arg0 int

int

Exceptions

SocketException

DatagramSocket(int, InetAddress)

public DatagramSocket(int arg0, InetAddress arg1)

Parameters

arg0 int

int

arg1 InetAddress

InetAddress

Exceptions

SocketException

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

Parameters

args object[]

Properties

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

Broadcast

public bool Broadcast { get; set; }

Property Value

bool

Channel

public DatagramChannel Channel { get; }

Property Value

DatagramChannel

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

LocalAddress

public InetAddress LocalAddress { get; }

Property Value

InetAddress

LocalPort

public int LocalPort { get; }

Property Value

int

LocalSocketAddress

public SocketAddress LocalSocketAddress { get; }

Property Value

SocketAddress

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

SoTimeout

public int SoTimeout { get; set; }

Property Value

int

TrafficClass

public int TrafficClass { get; set; }

Property Value

int

Methods

Bind(SocketAddress)

public void Bind(SocketAddress arg0)

Parameters

arg0 SocketAddress

SocketAddress

Exceptions

SocketException

Close()

public void Close()

Connect(InetAddress, int)

public void Connect(InetAddress arg0, int arg1)

Parameters

arg0 InetAddress

InetAddress

arg1 int

int

Connect(SocketAddress)

public void Connect(SocketAddress arg0)

Parameters

arg0 SocketAddress

SocketAddress

Exceptions

SocketException

Disconnect()

public void Disconnect()

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

Receive(DatagramPacket)

public void Receive(DatagramPacket arg0)

Parameters

arg0 DatagramPacket

DatagramPacket

Exceptions

IOException

Send(DatagramPacket)

public void Send(DatagramPacket arg0)

Parameters

arg0 DatagramPacket

DatagramPacket

Exceptions

IOException

SetDatagramSocketImplFactory(DatagramSocketImplFactory)

public static void SetDatagramSocketImplFactory(DatagramSocketImplFactory arg0)

Parameters

arg0 DatagramSocketImplFactory

DatagramSocketImplFactory

Exceptions

IOException

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

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

Parameters

arg0 SocketOption<T>

SocketOption

arg1 T

T

Returns

DatagramSocket

DatagramSocket

Type Parameters

T

Exceptions

IOException

SupportedOptions()

public Set<SocketOption<object>> SupportedOptions()

Returns

Set<SocketOption<object>>

Set