#ifndef _corral_h_defined_ #define _corral_h_defined_ /* The message-type values for the messages exchanged between the Corral server and client. */ #define error_msg 121 #define game_msg 122 #define lose_msg 123 #define move_msg 124 #define play_msg 125 #define quit_msg 126 #define win_msg 127 /* Call default_port_number() with your student id to get the first in a sequence of 10 personal port numbers (in, of course, host-byte order). */ #define default_port_number(_sid) (30000 + ((_sid) % 1000)*10) #endif /* $Log: corral.h,v $ Revision 1.3 2004/02/18 15:36:43 rclayton Replace C++-style // comments with C-style /* */ comments. Revision 1.2 2004/02/18 15:31:14 rclayton Add the rest of the corral message tags. Revision 1.1 2004/02/18 15:22:46 rclayton Initial revision */