Table of Contents

Class DatagramPacket

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

DatagramPacket()

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

public DatagramPacket()

DatagramPacket(byte[], int)

public DatagramPacket(byte[] arg0, int arg1)

Parameters

arg0 byte[]

byte

arg1 int

int

DatagramPacket(byte[], int, InetAddress, int)

public DatagramPacket(byte[] arg0, int arg1, InetAddress arg2, int arg3)

Parameters

arg0 byte[]

byte

arg1 int

int

arg2 InetAddress

InetAddress

arg3 int

int

DatagramPacket(byte[], int, SocketAddress)

public DatagramPacket(byte[] arg0, int arg1, SocketAddress arg2)

Parameters

arg0 byte[]

byte

arg1 int

int

arg2 SocketAddress

SocketAddress

DatagramPacket(byte[], int, int)

public DatagramPacket(byte[] arg0, int arg1, int arg2)

Parameters

arg0 byte[]

byte

arg1 int

int

arg2 int

int

DatagramPacket(byte[], int, int, InetAddress, int)

public DatagramPacket(byte[] arg0, int arg1, int arg2, InetAddress arg3, int arg4)

Parameters

arg0 byte[]

byte

arg1 int

int

arg2 int

int

arg3 InetAddress

InetAddress

arg4 int

int

DatagramPacket(byte[], int, int, SocketAddress)

public DatagramPacket(byte[] arg0, int arg1, int arg2, SocketAddress arg3)

Parameters

arg0 byte[]

byte

arg1 int

int

arg2 int

int

arg3 SocketAddress

SocketAddress

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

Parameters

args object[]

Properties

Address

public InetAddress Address { get; set; }

Property Value

InetAddress

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

Data

public byte[] Data { get; set; }

Property Value

byte[]

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

Length

public int Length { get; set; }

Property Value

int

Offset

public int Offset { get; }

Property Value

int

Port

public int Port { get; set; }

Property Value

int

SocketAddress

public SocketAddress SocketAddress { get; set; }

Property Value

SocketAddress

Methods

SetData(byte[], int, int)

public void SetData(byte[] arg0, int arg1, int arg2)

Parameters

arg0 byte[]

byte

arg1 int

int

arg2 int

int