Everything besides TCP/IP is more or less dead now.

To send data between peers some form of network protocol is needed. These days most thing end up in some form of TCP/IP but the interface might vary on each platforms. It can make sense to make a generic interface to hide the details.