src/java.base/share/classes/java/net/DatagramPacket.java
changeset 53132 d976ee345d11
parent 47216 71c04702a3d5
child 55693 9a97b1393e72
child 58678 9cf78a70fa4f
equal deleted inserted replaced
53131:e412d5c096bc 53132:d976ee345d11
     1 /*
     1 /*
     2  * Copyright (c) 1995, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1995, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   100         this (buf, 0, length);
   100         this (buf, 0, length);
   101     }
   101     }
   102 
   102 
   103     /**
   103     /**
   104      * Constructs a datagram packet for sending packets of length
   104      * Constructs a datagram packet for sending packets of length
   105      * {@code length} with offset {@code ioffset}to the
   105      * {@code length} with offset {@code offset} to the
   106      * specified port number on the specified host. The
   106      * specified port number on the specified host. The
   107      * {@code length} argument must be less than or equal to
   107      * {@code length} argument must be less than or equal to
   108      * {@code buf.length}.
   108      * {@code buf.length}.
   109      *
   109      *
   110      * @param   buf      the packet data.
   110      * @param   buf      the packet data.
   123         setPort(port);
   123         setPort(port);
   124     }
   124     }
   125 
   125 
   126     /**
   126     /**
   127      * Constructs a datagram packet for sending packets of length
   127      * Constructs a datagram packet for sending packets of length
   128      * {@code length} with offset {@code ioffset}to the
   128      * {@code length} with offset {@code offset} to the
   129      * specified port number on the specified host. The
   129      * specified port number on the specified host. The
   130      * {@code length} argument must be less than or equal to
   130      * {@code length} argument must be less than or equal to
   131      * {@code buf.length}.
   131      * {@code buf.length}.
   132      *
   132      *
   133      * @param   buf      the packet data.
   133      * @param   buf      the packet data.