Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Erlang fd_server by Sebastian Strollo (based on Jungerl version, with some patches)
branch: master

This branch is 6 commits behind richcarl:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
c_src
config
doc
ebin
priv
src
Makefile
README
vsn.mk

README

The fdserv.erl module makes it possible to open
up privileged ports from Erlang running as non-root.

Here is an example from the esmb_browser.erl code:
---------------------------------
...
{ok, Fd} = open_socket(137, []),
....

open_socket(Port,Opts) ->
    case fdsrv:bind_socket(udp, Port) of
	{ok, Fd} ->
	    gen_udp:open(Port, [{fd, Fd}, binary, {broadcast,true} | Opts]);
	Error ->
	    ?elog("Couldn't open socket, port=~p: ~p~n",[Port, Error])
    end. 
--------------------------------

Here we open the NetBIOS-NameService port 137.



Something went wrong with that request. Please try again.