travelping / gen_socket

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gen_socket

Build Status Erlang Versions

gen_socket is an Erlang socket interface which can be used to create gen_tcp and gen_udp based sockets with special properties.

Existing use cases are:

  • gen_udp socket that talks netlink to the linux kernel
  • gen_tcp socket that is a unix domain socket

In all cases a special file descriptor is created and passed to the gen_tcp/gen_udp driver for further handling

WARNING: pre R15, it was possible to create a non-INET socket and have gen_udp work on it. With R15 the check rules in fdopen() have been tightened to prevent this kind of trickery.

COMPILING

Using tetrapak:

# tetrapak build check

Using rebar:

# rebar get-deps
# rebar compile

About

License:Other


Languages

Language:Erlang 60.2%Language:C 39.1%Language:Makefile 0.7%