; ; Network Protocol Includes V 0.4 03/01/1999 ; by Anton Reinauer NET_PROTOCOL_VERSION.s=Ü(1) ; Net protocol version 0.1 #NET_PROTOCOL_VERSION=$01 ; Control Packet Constants (2 bytes with first byte=1) CONTROL_PACKET.s=Ü($1) ; Byte header for Control Packet #CONTROL_PACKET=$1 ; Byte header for Control Packet CP_REQ_CONNECT.s=CONTROL_PACKET.s + Ü($1) ; Connection request #CP_REQ_CONNECT=$1 CP_REP_ACCEPT.s=CONTROL_PACKET.s + Ü($81) ; Connection accepted #CP_REP_ACCEPT=$81 CP_REP_REJECT.s=CONTROL_PACKET.s + Ü($82) ; Server refuses connection #CP_REP_REJECT=$82 CP_REQ_SERVER_INFO.s=CONTROL_PACKET.s + Ü($2) ; Client requests info from Server #CP_REQ_SERVER_INFO= $2 CP_SERVER_INFO.s=CONTROL_PACKET.s + Ü($83) ; Info from Server #CP_SERVER_INFO=$83 CP_REQ_PLAYER_INFO.s=CONTROL_PACKET.s + Ü($3) ; Request info on a player from Server #CP_REQ_PLAYER_INFO=$3 CP_REP_PLAYER_INFO.s=CONTROL_PACKET.s + Ü($84) ; Player info reply from server #CP_REP_PLAYER_INFO=$84 CP_REQ_ENVIRONMENT_INFO.s=CONTROL_PACKET.s + Ü($4) ; Request game environment details #CP_REQ_ENVIRONMENT_INFO=$4 CP_REP_ENVIRONMENT_INFO.s=CONTROL_PACKET.s + Ü($85) ; Game environment details from Server #CP_REP_ENVIRONMENT_INFO=$85 CP_REQ_PLAYER_DISCONNECT.s=CONTROL_PACKET.s + Ü($5) ; Client tells Server if it can't contact another player #CP_REQ_PLAYER_DISCONNECT=$5 CP_REP_PLAYER_DISCONNECTED.s=CONTROL_PACKET.s + Ü($86) ; Server tells a client if a player has disconnected #CP_REP_PLAYER_DISCONNECTED=$86 CP_END_GAME.s=CONTROL_PACKET.s + Ü($6) ; Server tells client the game has ended #CP_END_GAME=$6 CP_END_GAME_REC.s=CONTROL_PACKET.s + Ü($87) ; Client confirms it has received Game End packet #CP_END_GAME_REC=$87 ; Game Packet Constants (1 byte from $02 onwards, then a 4 byte packet number ; and then data depending on game packet type). #REL_STRING_MESSAGE=$02 ; Communication string from one player to another REL_STRING_MESSAGE.s=Ü($2) ; - only used if message >1024 bytes #REL_STRING_END=$03 ; End of communication string, and used if message REL_STRING_END.s=Ü($3) ; is <=1024 bytes #REL_PACKET_ACK=$04 ; Acknowledgement that a packet (of packet number) REL_PACKET_ACK.s=Ü($4) ; has been received #PING_REQUEST=$05 ; Send a Ping Request to Server/another player PING_REQUEST.s=Ü($5) #PING_RESPONSE=$06 ; Response to a Ping request from a Server/another player PING_RESPONSE.s=Ü($6) ; #UNRELIABLE_PACKET=$07 ; Unreliable string message- can't be >1024 bytes