main/ims_tcp.c
/*
 * Sends the a not found message to a browser
 */
Sends the a not found message to a browser
Sends the a not found message to a browser
void send404ReplyHTML(int socket){
	char sendbuf[64] = { 0 };
	sprintf(sendbuf, "\r\nHTTP/1.1 404 \r\n\r\n");
	if (send(socket, sendbuf, sizeof(sendbuf), 0) == -1) { 
		perror("send");
	}
}
void send404ReplyHTML ( int socket ) { char sendbuf [ 64 ] = { 0 } ; sprintf ( sendbuf , " \r \n \r \n \r \n " ) ; if ( send ( socket , sendbuf , sizeof ( sendbuf ) , 0 ) == -1 ) { perror ( " " ) ; } }
Sends the a not found message to a browser
Sends the a not found message to a browser
//this has to be sizeof the whole buffer //printf("\n%s\n\n",sendbuf); //print sent data. TODO: comment out when not needed