Class DatagramSocket
public class DatagramSocket : Closeable, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, ICloseable, IAutoCloseable
- Inheritance
-
JVMBridgeBaseJVMBridgeBase<AutoCloseable>DatagramSocket
- Implements
-
IJVMBridgeCoreIJVMBridgeBaseStaticIJVMBridgeBaseIJVMBridgeDefinition
- Derived
- Inherited Members
-
JVMBridgeBase<AutoCloseable>.SExecuteWithSignature(Type, IJavaType, string, string, params object[])JVMBridgeBase<AutoCloseable>.SExecute<TReturn, TConverter>(Type, IJavaType, string, params object[])JVMBridgeBase<AutoCloseable>.IsAssignableFrom(IJavaType)JVMBridgeBase<AutoCloseable>.IsAssignableFrom<T>()JVMBridgeBase<AutoCloseable>.Execute<T>(params T[])JVMBridgeBase<AutoCloseable>.DynBridgeClazzJVMBridgeBase<AutoCloseable>.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
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
Exceptions
DatagramSocket(int)
public DatagramSocket(int arg0)
Parameters
Exceptions
DatagramSocket(int, InetAddress)
public DatagramSocket(int arg0, InetAddress arg1)
Parameters
arg0
intarg1
InetAddress
Exceptions
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
https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeBase_BridgeClassName.htm
public override string BridgeClassName { get; }
Property Value
Broadcast
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/DatagramSocket.html#getBroadcast() https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/DatagramSocket.html#setBroadcast(boolean)
public bool Broadcast { get; set; }
Property Value
Channel
public DatagramChannel Channel { get; }
Property Value
InetAddress
public InetAddress InetAddress { 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 InetAddress LocalAddress { get; }
Property Value
LocalPort
public int LocalPort { get; }
Property Value
LocalSocketAddress
public SocketAddress LocalSocketAddress { get; }
Property Value
Port
public int Port { get; }
Property Value
ReceiveBufferSize
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/DatagramSocket.html#getReceiveBufferSize() https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/DatagramSocket.html#setReceiveBufferSize(int)
public int ReceiveBufferSize { get; set; }
Property Value
RemoteSocketAddress
public SocketAddress RemoteSocketAddress { get; }
Property Value
ReuseAddress
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/DatagramSocket.html#getReuseAddress() https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/DatagramSocket.html#setReuseAddress(boolean)
public bool ReuseAddress { get; set; }
Property Value
SendBufferSize
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/DatagramSocket.html#getSendBufferSize() https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/DatagramSocket.html#setSendBufferSize(int)
public int SendBufferSize { get; set; }
Property Value
SoTimeout
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/DatagramSocket.html#getSoTimeout() https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/DatagramSocket.html#setSoTimeout(int)
public int SoTimeout { get; set; }
Property Value
TrafficClass
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/DatagramSocket.html#getTrafficClass() https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/DatagramSocket.html#setTrafficClass(int)
public int TrafficClass { get; set; }
Property Value
Methods
Bind(SocketAddress)
public void Bind(SocketAddress arg0)
Parameters
Exceptions
Close()
public void Close()
Connect(InetAddress, int)
public void Connect(InetAddress arg0, int arg1)
Parameters
arg0
InetAddressarg1
int
Connect(SocketAddress)
public void Connect(SocketAddress arg0)
Parameters
Exceptions
Disconnect()
public void Disconnect()
GetOption<T>(SocketOption<T>)
public T GetOption<T>(SocketOption<T> arg0)
Parameters
arg0
SocketOption<T>
Returns
- T
T
Type Parameters
T
Exceptions
IsBound()
public bool IsBound()
Returns
IsClosed()
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/DatagramSocket.html#isClosed()
public bool IsClosed()
Returns
IsConnected()
public bool IsConnected()
Returns
Receive(DatagramPacket)
public void Receive(DatagramPacket arg0)
Parameters
Exceptions
Send(DatagramPacket)
public void Send(DatagramPacket arg0)
Parameters
Exceptions
SetDatagramSocketImplFactory(DatagramSocketImplFactory)
public static void SetDatagramSocketImplFactory(DatagramSocketImplFactory arg0)
Parameters
Exceptions
SetOption<T>(SocketOption<T>, T)
public DatagramSocket SetOption<T>(SocketOption<T> arg0, T arg1)
Parameters
arg0
SocketOption<T>arg1
TT
Returns
Type Parameters
T
Exceptions
SupportedOptions()
public Set<SocketOption<object>> SupportedOptions()