November 2017
Beginner
316 pages
6h 40m
English
Julia supports both types of protocols, namely the UDP as well as TCP. We have already seen the TCP server and how to create a connection with a client in the previous section. However, here we will talk about UDP as well as named pipes, which is yet another functionality that is provided by Julia.
Julia has two very important modules which have most of the code for the sockets and servers:
Coming back to how UDP behaves, user datagram protocol (UDP). Unlike TCP, it doesn't make sure of the delivery of packets to the destination and hence can allow for some data packets' loss. We can easily make a UDP socket in Julia using the following function:
julia> u = UDPSocket() UDPSocket(init) julia> bind(u, IPv4(127,0,0,1), ...
Read now
Unlock full access