listen()
call important?
Even if you nothing whatsoever about Java, can you suggest what this line of code does? How does it compare to the "C" code described in the lecture? For real Java whizkids: why wouldn't you normally write a program containing a line like this?mySock = new Socket("www.latrobe.edu.au", 80);
getservbyname()
to
map well-known services to port numbers. How is this performed on
your generic Unix box? What about on other systems?
/usr/local/pub/BITCNE
for some more
sample code for manipulating sockets. Copy the example there to your
directory and try it out.