DatagramPacket class

September 12th, 2006 Admin Posted in Networking No Comments »

Constructors

1.DatagramPacket

(byte[],int,InetAddress,int)

2.DatagramPacket

(byte[],int)

3.DatagramPacket

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

AddThis Social Bookmark Button

DatagramSocket

September 12th, 2006 Admin Posted in Networking No Comments »

Constructors

1.DatagramSocket() //Client side
2.DatagramSocket(int Portno)

//Server side Methods

1.send(DatagramPacket)
2.receive(DatagramPacket)

AddThis Social Bookmark Button

DatagramSocket Class

September 12th, 2006 Admin Posted in Home, Networking No Comments »

DatagramSocket class is used to send and receive DatagramPackets between machines on the net.

Once the DatagramPacket objects are created, they can be sent or received by using the instances of the class DatagramSocket.

AddThis Social Bookmark Button