You can take the port number as a CLA. So for the server:
int portno = atoi(argv[1]); //use atoi to convert the 2nd CLA to an int. atoi means, ascii to integer.
serv_addr.sin_port =...
Type: Posts; User: Annonymous
You can take the port number as a CLA. So for the server:
int portno = atoi(argv[1]); //use atoi to convert the 2nd CLA to an int. atoi means, ascii to integer.
serv_addr.sin_port =...