com.planet_ink.coffee_mud.core.intermud.i3.packets
Class Packet

java.lang.Object
  extended by com.planet_ink.coffee_mud.core.intermud.i3.packets.Packet
Direct Known Subclasses:
ChannelAdd, ChannelDelete, ChannelListen, ChannelPacket, ChannelUserReply, ChannelUserRequest, ChannelWhoReply, ChannelWhoRequest, ErrorPacket, FingerReply, FingerRequest, LocateQueryPacket, LocateReplyPacket, MudAuthReply, MudAuthRequest, PingPacket, ShutdownPacket, TellPacket, WhoPacket

public class Packet
extends java.lang.Object

Copyright (c) 1996 George Reese Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.


Field Summary
static int CHAN_ADD
           
static int CHAN_EMOTE
           
static int CHAN_LISTEN
           
static int CHAN_MESSAGE
           
static int CHAN_REMOVE
           
static int CHAN_TARGET
           
static int CHAN_USER_REP
           
static int CHAN_USER_REQ
           
static int CHAN_WHO_REP
           
static int CHAN_WHO_REQ
           
static int ERROR_PACKET
           
static int FINGER_REPLY
           
static int FINGER_REQUEST
           
static int LOCATE_QUERY
           
static int LOCATE_REPLY
           
static int MAUTH_REPLY
           
static int MAUTH_REQUEST
           
static int PING_PACKET
           
 java.lang.String sender_mud
           
 java.lang.String sender_name
           
static int SHUTDOWN
           
 java.lang.String target_mud
           
 java.lang.String target_name
           
static int TELL
           
 int type
           
static int WHO_REPLY
           
static int WHO_REQUEST
           
 
Constructor Summary
Packet()
           
Packet(java.util.Vector<?> v)
           
 
Method Summary
 java.lang.String convertString(java.lang.String cmd)
           
 void send()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CHAN_MESSAGE

public static final int CHAN_MESSAGE
See Also:
Constant Field Values

CHAN_EMOTE

public static final int CHAN_EMOTE
See Also:
Constant Field Values

CHAN_TARGET

public static final int CHAN_TARGET
See Also:
Constant Field Values

WHO_REQUEST

public static final int WHO_REQUEST
See Also:
Constant Field Values

WHO_REPLY

public static final int WHO_REPLY
See Also:
Constant Field Values

TELL

public static final int TELL
See Also:
Constant Field Values

LOCATE_QUERY

public static final int LOCATE_QUERY
See Also:
Constant Field Values

LOCATE_REPLY

public static final int LOCATE_REPLY
See Also:
Constant Field Values

CHAN_WHO_REQ

public static final int CHAN_WHO_REQ
See Also:
Constant Field Values

CHAN_WHO_REP

public static final int CHAN_WHO_REP
See Also:
Constant Field Values

CHAN_ADD

public static final int CHAN_ADD
See Also:
Constant Field Values

CHAN_REMOVE

public static final int CHAN_REMOVE
See Also:
Constant Field Values

CHAN_LISTEN

public static final int CHAN_LISTEN
See Also:
Constant Field Values

CHAN_USER_REQ

public static final int CHAN_USER_REQ
See Also:
Constant Field Values

CHAN_USER_REP

public static final int CHAN_USER_REP
See Also:
Constant Field Values

SHUTDOWN

public static final int SHUTDOWN
See Also:
Constant Field Values

FINGER_REQUEST

public static final int FINGER_REQUEST
See Also:
Constant Field Values

FINGER_REPLY

public static final int FINGER_REPLY
See Also:
Constant Field Values

ERROR_PACKET

public static final int ERROR_PACKET
See Also:
Constant Field Values

PING_PACKET

public static final int PING_PACKET
See Also:
Constant Field Values

MAUTH_REQUEST

public static final int MAUTH_REQUEST
See Also:
Constant Field Values

MAUTH_REPLY

public static final int MAUTH_REPLY
See Also:
Constant Field Values

sender_mud

public java.lang.String sender_mud

sender_name

public java.lang.String sender_name

target_mud

public java.lang.String target_mud

target_name

public java.lang.String target_name

type

public int type
Constructor Detail

Packet

public Packet()

Packet

public Packet(java.util.Vector<?> v)
Method Detail

convertString

public java.lang.String convertString(java.lang.String cmd)

send

public void send()
          throws InvalidPacketException
Throws:
InvalidPacketException