Lab1



Slides

Source code for Server

  • compile: g++ server.cpp
  • run:./a.out

Source code for Client

  • compile: g++ client.cpp
  • run:./a.out localhost
  • OR ./a.out carrot
  • OR ./a.out [where server is being run]

Example code using ntohl and other derivates.