hi i am just wondering how would you send a website through a socket as i am trying to make my own web server.
do you just open up the file, read the file and write out to the socket ?
openfile = open(home/username/www/index.html, "r");
n = read(openfile,buffer,256);
n = write(newsock_filedesc,openfile, 256) ;