Datagram packets are used to implement a connectionless packet
delivery service. Each message is routed from one machine to
another based solely on information contained within that packet.
Multiple packets sent from one machine to another might be routed
differently, and might arrive in any order.
Constructs a DatagramPacket for receiving packets of
length ilength.
The length argument must be less than or equal to
ibuf.length.
Parameters:
ibuf - buffer for holding the incoming datagram.
ilength - the number of bytes to read.
DatagramPacket
public DatagramPacket(byte ibuf[],
int ilength,
InetAddress iaddr,
int iport)
Constructs a datagram packet for sending packets of length
ilength to the specified port number on the specified
host. The length argument must be less than or equal
to ibuf.length.
Submit a bug or feature - Version 1.1.8 of Java Platform API Specification
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1995-1999 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.