cvs commit: spice/sandbox/packet/src/java/org/realityforge/packet Packet.java
Peter Donald <[email protected]> Tue, 11 Nov 2003 01:32:07 -0800
| Newsgroups | gmane.comp.java.spice.cvs |
|---|---|
| Message-ID | <[email protected]> |
donaldp 03/11/11 01:32:07
Modified: sandbox/packet/src/java/org/realityforge/packet Packet.java
Log:
Sequence can be a short
Revision Changes Path
1.2 +4 -4 spice/sandbox/packet/src/java/org/realityforge/packet/Packet.java
Index: Packet.java
===================================================================
RCS file: /cvsroot/spice/spice/sandbox/packet/src/java/org/realityforge/packet/Packet.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- Packet.java 11 Nov 2003 04:18:47 -0000 1.1
+++ Packet.java 11 Nov 2003 09:32:07 -0000 1.2
@@ -13,14 +13,14 @@
* The Packet class represents a chunk of data sent across network.
*
* @author <a href="mailto:peter at realityforge.org">Peter Donald</a>
- * @version $Revision: 1.1 $ $Date: 2003/11/11 04:18:47 $
+ * @version $Revision: 1.2 $ $Date: 2003/11/11 09:32:07 $
*/
public class Packet
{
/**
* The sequence ID of packet.
*/
- private final int m_sequence;
+ private final short m_sequence;
/**
* The packet flags. Indicate things
@@ -42,7 +42,7 @@
* @param flags the flags
* @param data the data
*/
- public Packet( final int sequence,
+ public Packet( final short sequence,
final int flags,
final ByteBuffer data )
{
@@ -60,7 +60,7 @@
*
* @return the packet sequence number.
*/
- public int getSequence()
+ public short getSequence()
{
return m_sequence;
}
-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/