pretty small and specific question if anyone might know, about the socket system call function protocol parameter,in the manual it says its where u put the protocol, when i hear socket protocol i start to think this is where u put 23 for telnet, or 80 for http. is this correct?
sockfd = socket(AF_INET, SOCK_STREAM, 0);
I only see 0 or other non integer arguments passed, could i put 80 here to state i want to do HTTP?
also the socket programming can be done by BSD socket libraries imported by C++. but the step from the socket to the HTTP programming seems unclear to me, how would i go about a HTTP layer ontop of this socket network once i have this programmed?
Thank u in advance (first time on this forum)
http://linux.die.net/man/2/socket
what does 0 indicate in socket() system call?
Is it possible to use port 80 for both HTTP and web socket traffic?