net.sf.juoserver.protocol
Class LoginSeed

java.lang.Object
  extended by net.sf.juoserver.protocol.AbstractMessage
      extended by net.sf.juoserver.protocol.LoginSeed
All Implemented Interfaces:
Serializable, Message

public class LoginSeed
extends AbstractMessage

First message ever sent by a client. It's made up of 4 bytes, usually consisting of the client's IP address.

See Also:
Serialized Form

Field Summary
static int CODE
           
 
Fields inherited from class net.sf.juoserver.protocol.AbstractMessage
NO_CODE, UTF8
 
Constructor Summary
LoginSeed(byte[] contents)
           
LoginSeed(InetAddress address)
           
 
Method Summary
 boolean equals(Object obj)
           
 InetAddress getAddress()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class net.sf.juoserver.protocol.AbstractMessage
encode, getCode, getLength, getName, isCompressed, wrapContents, wrapContents
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

CODE

public static final int CODE
See Also:
Constant Field Values
Constructor Detail

LoginSeed

public LoginSeed(byte[] contents)
          throws UnknownHostException
Throws:
UnknownHostException

LoginSeed

public LoginSeed(InetAddress address)
Method Detail

getAddress

public InetAddress getAddress()

hashCode

public int hashCode()
Specified by:
hashCode in class AbstractMessage

equals

public boolean equals(Object obj)
Specified by:
equals in class AbstractMessage

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010-2012. All Rights Reserved.