TCP sockets and servers
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access