The client socket operations are (in order): ~ socket, bind, listen, accept, send, recv, close ~+ socket, connect, send, recv, close ~ socket, connect, listen, close ~ socket, accept, listen, close ~~ The server socket operations are (in order): ~+ socket, bind, listen, accept, send, recv, close ~ socket, connect, send, recv, close ~ socket, bind, connect, listen, close ~ socket, accept, listen, close ~~ Server code sends and receives data on the socket returned by the socket() system call. ~ True ~+ False ~~ Which system call returns the socket used by server code for send and recv? ~+ accept() ~~ Which system call returns the socket used by client code for send and recv? ~+ socket() ~~ Which socket-related system calls return immediately? ~+ socket, bind, listen ~ socket, bind, listen, accept ~ socket, connect, bind, listen ~ bind, connect, accept ~~ Suppose that memory contains the following data starting at the address given in the left column (in hex dump format):
0x00001000: 0000 0000 0000 0000 fffe 1020 0102 feff
On a little-endian architecture machine, what is the numerical value of the two-byte unsigned integer starting at address 0x00001008? Write your answer as an expression involving sums of powers of 256. ~+ 255 * 256^0 + 254 * 256^1 ~~ Suppose that memory contains the following data starting at the address given in the left column (in hex dump format):
00001000: 0000 0000 0000 0000 fe01 1020 0102 01fe
On a big-endian architecture machine is the two-byte signed integer value with address 0x00001008: ~ positive ~+ negative ~~ Suppose that memory contains the following data starting at the address given in the left column (in hex dump format):
00001000: 0000 0000 0000 0000 fe01 1020 0102 01fe
On a little-endian architecture machine is the four-byte signed integer value with address 0x0000100c: ~positive ~+ negative