Lab1
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.
Source code for Server
Source code for Client
Example code using ntohl and other derivates.