Revision: 5885
http://jnode.svn.sourceforge.net/jnode/?rev=5885&view=rev
Author: galatnm
Date: 2012-02-08 11:49:43 +0000 (Wed, 08 Feb 2012)
Log Message:
-----------
Little documentation improvement based on the RFC.
Modified Paths:
--------------
trunk/net/src/net/org/jnode/net/ipv4/udp/UDPHeader.java
Modified: trunk/net/src/net/org/jnode/net/ipv4/udp/UDPHeader.java
===================================================================
--- trunk/net/src/net/org/jnode/net/ipv4/udp/UDPHeader.java 2012-01-27 08:17:35 UTC (rev 5884)
+++ trunk/net/src/net/org/jnode/net/ipv4/udp/UDPHeader.java 2012-02-08 11:49:43 UTC (rev 5885)
@@ -36,17 +36,21 @@
/** My logger */
private static final Logger log = Logger.getLogger(UDPHeader.class);
+ /** The port of the sending process or 0 if not used. */
private final int srcPort;
+ /** The destination port within the context of a particular internet address */
private final int dstPort;
+ /** The length in octet. It include the header and the data. Minimum value of the length is 8 */
private final int udpLength;
+
private final boolean checksumOk;
/**
* Create a new instance
*
- * @param srcPort
- * @param dstPort
- * @param dataLength
+ * @param srcPort The port of the sending process.
+ * @param dstPort The destination port.
+ * @param dataLength The length of the data.
*/
public UDPHeader(int srcPort, int dstPort, int dataLength) {
this.srcPort = srcPort;
@@ -58,7 +62,7 @@
/**
* Create a new instance and read the contents from the given buffer
*
- * @param skbuf
+ * @param skbuf The socket buffer.
*/
public UDPHeader(SocketBuffer skbuf) {
this.srcPort = skbuf.get16(0);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|