#define PORT_NUM 4239 typedef enum { NextTrack=44, Pause, Play, Stop, RestartTrack, PlayDisc, PlayTrack, PlayRandom, GetDiscTrack, GetTrackInfo, } REMOTECMD; // NextTrack // Pause // Play // Stop // RestartTrack // PlayRandom typedef struct { int unit; } reqDEFAULT; // PlayTrack typedef struct { int unit; int disc; int track; } reqPLAYTRACK; // PlayDisc typedef struct { int unit; int disc; } reqPLAYDISC; // GetTrackInfo typedef struct { int unit; int disc; int track; char szartist[50]; char szdisc[50]; char sztrack[50]; } reqGETTRACKINFO;