So, I was thinking about languages โโthe other day, and it seemed to me that any program written in a compiled language that interacts with the Internet is then converted to an assembly that should interact with the Internet. I was just starting to learn a little x86 build to help me understand C ++ a little better, and I am puzzled by how something so low level can do something like Internet access.
I am sure that the complete answer to this question is much more than fits into the answer of SO, but can someone give me, perhaps, the main summary?
, " " , , , API TCP/IP.
(, socket, listen, accept ..) C, , , , , .., .
socket
listen
accept
, (, C) , " " ( ), , (, , -, -, ) - , () .
. script, C, CGI. CGI - , . CGI , "GET", "POST" .. REQUEST_METHOD, "foo = bar? Baz = 42" QUERY_STRING, stdin .. CGI . - CGI - script. , , API- .
, . .
, , , โโ -, IO .. -, .
, - PIC. - -, 8- . , - .
, .
, - , , (- ) - "" ( , ), " " ? , .NET ILASM/Java - , , - , .