Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
After the normal library linking, the first system call we see is to so_socket,
a system call invoked by our call to socket.
The first three arguments to so_socket are our three arguments to socket.
We see that connect is a system call, and truss, when invoked with the -v connec
t flag, prints the contents of the socket address structure pointed to by the se
cond argument (the IP address and port number). The only system calls that we ha
ve replaced with ellipses are a few dealing with standard input and standard out
put.