Question: In computer networking, a socket is an application endpoint for communications services. Sockets consist of an Internet Protocol (IP) address, which is the logical address,
In computer networking, a socket is an application endpoint for communications services. Sockets consist of an Internet Protocol (IP) address, which is the logical address, and a port number, which points to a specific service at that address. Declare a struct called Socket that has a string field for an IP address and an int field for a port number.
Using the struct declaration above, show how you could establish a new service of type Socket called HTTP. This service runs on port 80 at IP address 192.168.0.15.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
