What do we need in order to send data from one machine to another machine connected to the network? We typically use a TCP/IP connection in which TCP is the protocol that controls the flow of packets between the sender and receiver, and at the same time, it's also responsible for rearranging the packets at the destination in order for the data to make sense.
Like all other languages, Julia also provides a good amount of predefined functions, as well as modules, for completing the task. This is fairly easily done and takes fewer lines of code compared with other languages. The following is an example of a TCP/IP connection being set between the sender and the receiver.
Let's look at the code for the sender first. Create a file, sender.jl, and let's put the underlying code in it:
# define the PORT PORT = 7575 # create the server...