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 Sourceforge or the Praya Homepage

Version:
$Name: $ $Date: 2002/07/08 07:58:43 $
Author:
$Author: wtanaka $
See Also:
Serialized Form

Field Summary
static java.lang.StringBuffer buffer
           
 int connection_id
           
(package private)  byte[] content
           
 int len
          length is 4 bytes , little endian
 int magic_id
           
 int msgtype
           
(package private)  byte[] nick1
           
(package private)  byte[] nick2
           
 int service
           
 int unknown1
           
 byte[] version
          7 chars and trailing null
 
Constructor Summary
YahooRawPacket()
           
 
Method Summary
private  java.lang.String byteArrayToString(byte[] array)
           
 java.lang.String getContents()
           
 java.lang.String getNick1()
           
 java.lang.String getNick2()
           
 void readFrom(LittleEndianInputStream in)
           
 java.lang.String toString()
          Debugging copy of this packet.
 void writeTo(LittleEndianOutputStream out)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

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
Constructor Detail

YahooRawPacket

public YahooRawPacket()
Method Detail

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