Skip to content

mesosphere/gen_socket

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gen_socket

Build Status

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

Packages

No packages published

Languages

  • Erlang 62.0%
  • C 37.2%
  • Makefile 0.8%