Specifications
song_no++;
open_MP3(song_no);
reopen = 1;
if(stop == 0){
go = 1;
}
/* NEXT decrements the song count and opens the new file */
} else if ( strncmp("PREV", &Buff[0], 3) == 0){
play = 0;
if(song_no != 1){
song_no--;
}
open_MP3(song_no);
reopen = 1;
if(stop == 0){
go = 1;
}
}
}
return 0;
}
/* The Main loop of the program */
int main(int argc, char **argv)
{
WSADATA wsd;
SOCKET Server;
SOCKET command_Server;
int bytes_sent;
HANDLE Thread;
DWORD ThreadId;
char buffer[3000];
unsigned long bytes_read = 1;
struct sockaddr_in server;
struct sockaddr_in command_server;
struct sockaddr_in song_server;
struct hostent *host = NULL;
/* Open the Winsock library */
if (WSAStartup(MAKEWORD(2,2), &wsd) != 0)
{
printf("Failed to load Winsock library!\n");
return 1;
}
85










