wtanaka.praya.yahoo
Class YahooRawPacket
java.lang.Object
|
+--wtanaka.praya.yahoo.YahooRawPacket
- All Implemented Interfaces:
- java.io.Serializable
- public class YahooRawPacket
- extends java.lang.Object
- implements java.io.Serializable
This represents a pakcet as sent by or to the server
Adapted from yahoolib.h by Nathan Neulinger (nneul@umr.edu)
http://www.umr.edu/~nneul/gtkyahoo/
Return to
or the Praya Homepage
- Version:
- $Name: $ $Date: 2002/07/08 07:58:43 $
- Author:
- $Author: wtanaka $
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
version
public byte[] version
- 7 chars and trailing null
len
public int len
- length is 4 bytes , little endian
service
public int service
connection_id
public int connection_id
magic_id
public int magic_id
unknown1
public int unknown1
msgtype
public int msgtype
nick1
byte[] nick1
nick2
byte[] nick2
content
byte[] content
buffer
public static java.lang.StringBuffer buffer
YahooRawPacket
public YahooRawPacket()
writeTo
public void writeTo(LittleEndianOutputStream out)
throws java.io.IOException
readFrom
public void readFrom(LittleEndianInputStream in)
throws java.io.IOException
byteArrayToString
private java.lang.String byteArrayToString(byte[] array)
getNick1
public java.lang.String getNick1()
getNick2
public java.lang.String getNick2()
getContents
public java.lang.String getContents()
toString
public java.lang.String toString()
- Debugging copy of this packet.
- Overrides:
toString in class java.lang.Object