libopennet

C library providing open_net() function for network socket operations

brewmacoslinux
Try with needOr install directly
Source

About

Provides open_net() (similar to open())

Examples

open a network socket connection to a server$ #include <opennet.h> int sock = open_net("example.com", 80);
connect to a remote host on a specific port$ #include <opennet.h> int sock = open_net("192.168.1.1", 8080);
use open_net in a C program for TCP connections$ gcc -o myapp myapp.c -lopennet
check if network socket opened successfully$ #include <opennet.h> int sock = open_net("host.com", 443); if (sock < 0) perror("Connection failed");
link libopennet library into your project$ pkg-config --cflags --libs libopennet