Please enable JavaScript.
Coggle requires JavaScript to display documents.
11.4 and 11.5 and 11.6 - Coggle Diagram
11.4 and 11.5 and 11.6
The sockets interface
-
-
11.4.2
-
-
if we want the socket to be the endpoint for a connection, then we would call a socket with this hardcoded stuff
clientfd = Socket(AF_INET, SOCK_STREAM, 0);
-
SOCK_STREAM indicates that socket will be an endpoint for a connection. Its better to use getaddrinfo to generate parameters automatically so the code is protocol independent
The clientfd descriptor returned is only partially opened and cannot be used for reading or writing yet.
-
-
11.5 Web Servers
-
-
11.5.3 HTTP Transactions
-
HTTP supports different methods including GET, POST, OPTIONS, HEAD, PUT, DELETE, TRACE. Only discuss GET we will
-
-
Serving Dynamic Content
-
-
-
CGI defines a number of other environment variables that a CGI program can expect to be set when it runs
-