Renamed ServerHello to GatewayHello, and renamed commandCode (in each message) to messageCode.