Machine 1: Write code for sending data to machine-2 and receiving data from it. The data sent will be two IP addresses and a subnet mask. e.g.
IP1 : 192.168.x.x
IP2 : 192.168.x.x
Subnet Mask : 255.255.x.x
Machine 2: Write code for receiving IP addresses and subnet mask from machine 1. Also, implement logic for finding out if both IP addresses belong to the same network and send the result back to the machine 1.
You need to implement this using TCP and UDP sockets both.
You can do it with one of the options below.
Option 1: Implement two applications.
One using TCP sockets and another using UDP sockets.
Option 2: Give user choice to choose kind of socket TCP or UDP in sing
PLZZ HELP me...