Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Jan 29, 2014

  1. Michael Santos

    linux: fix compiling under a 32-bit VM/64-bit arch

    Fix build failure:
    
    #13
    
    rebar designates 32-bit VM on x864_64 as
    "R16B03-1-i686-pc-linux-gnu-32".
    
    My guess is that a half-word emulator will be reported as
    "x86_64.*-32", so try to accomodate this case as well.
    
    Thanks @NAR!
    authored

Jan 27, 2014

  1. Michael Santos

    Correct argument to erlang:error/2

    authored
  2. Michael Santos

    Display bad arguments in error

    authored

Jan 22, 2014

  1. Michael Santos

    procket: return badarg

    authored

Jan 21, 2014

  1. Michael Santos

    procket: throw -> error

    authored

Jan 17, 2014

  1. Michael Santos

    getopts: simplify the switch construction

    authored

Dec 22, 2013

  1. Michael Santos

    Add targets for dialyzer

    authored

Dec 19, 2013

  1. Michael Santos

    Allow atoms in io* funs

    Take integers or atoms in ioc, iow, iorw, to allow lookup of values
    based on platform.
    
    From dialyzer:
    
    bpf.erl:120: The call bpf:ior(66,'gseesent',4) will never return since it differs in the 2nd argument from the success typing arguments: (integer(),integer(),integer())
    bpf.erl:181: The call bpf:iow(66,'sseesent',4) will never return since it differs in the 2nd argument from the success typing arguments: (integer(),integer(),integer())
    authored

Dec 18, 2013

  1. Michael Santos

    Remove unnecessary case clause

    From dialyzer:
    
    procket.erl:204: The variable Error can never match since previous
    clauses completely covered the type {'ok',_}
    
    The code should be changed to return an error, rather than crashing but
    the code will currently crash in fdopen.
    authored

Dec 11, 2013

  1. Michael Santos

    procket: begin cleanup of cli option processing

    authored

Dec 01, 2013

  1. Michael Santos

    Allow setting the backlog on privileged sockets

    authored

Nov 30, 2013

  1. Michael Santos

    procket_cmd: increase backlog to SOMAXCONN

    authored

Nov 29, 2013

  1. Michael Santos

    Add a stub for unload

    authored

Nov 28, 2013

  1. Michael Santos

    read/recvfrom: remove special case for EINTR

    authored

Nov 26, 2013

  1. Michael Santos

    erlang:error/1 -> erlang:nif_error/1

    authored

Nov 05, 2013

  1. Kirill Pinchuk

    Add stubs for reload and upgrade

    authored

Nov 03, 2013

  1. Michael Santos

    bpf: use the ioctl functions from procket_ioctl

    Fix an unresolved function call to the obsolete inout/1.
    authored

Oct 11, 2013

  1. Michael Santos

    listen: increase the default backlog to 128

    Increase the default listenq to 128 (the standard max for most systems).
    Values exceeding the system limit are truncated to the system max. The
    behaviour of 0 and negative numbers is system dependent.
    
    UNP says about the backlog:
    
        Historically, sample code always shows a backlog of 5, as that was the
        maximum value supported by 4.2BSD. This was adequate in the 1980s when
        busy servers would handle only a few hundred connections per day. But with
        the growth of the World Wide Web (WWW), where busy servers handle millions
        of connections per day, this small number is completely inadequate. Busy
        HTTP servers must specify a much larger backlog, and newer kernels must
        support larger values.
    authored

Aug 17, 2013

  1. Michael Santos

    Add an example of setting the IPv6 hop limit

    Set the default hop limit for this socket.
    authored

Jul 02, 2013

  1. Michael Santos

    Merge branch 'send-recv-msg'

    authored

Jun 07, 2013

  1. Michael Santos

    Correct check for character device

    The procket helper will only open devices under the /dev directory.
    Append "/dev/" to the device name for the permissions check.
    authored

May 31, 2013

  1. Michael Santos

    examples/icmp: filter ICMP packets

    When pinging localhost, the ICMP socket will see the echo request and
    reply. Filter out the echo request. icmp:ping/2,1 will still crash on
    other ICMP types.
    
    Thanks @infospacer!
    authored

May 30, 2013

  1. Michael Santos

    procket_msg: fix padding on 64-bit

    authored

May 29, 2013

  1. Michael Santos

    Increment version for sendmsg/recvsg support

    authored

May 28, 2013

  1. Michael Santos

    Support for ancillary socket data

    authored
  2. Michael Santos

    sendmsg/recvmsg; return the number of bytes

    Return the number of bytes sent/received. The msghdr structure contains
    a pointer to an iovec which may consist of several buffers. The sendmsg
    and recvmsg NIFs are not aware of the size and number of the buffers.
    authored

May 26, 2013

  1. Michael Santos

    alloc/1: return resources in same order as arg

    authored
  2. Michael Santos

    Add support for sendmsg/recvmsg

    In preparation for support of socket ancillary data (RFC3542, Unix
    sockets, ...), add support for sendmsg(2) and recvmsg(2).
    
    recvmsg/3 and sendmsg/3 require a struct msghdr to be prepared
    containing pointers to allocated memory (to be read into and to be
    read from respectively). This buffer will have to be allocated using
    procket:alloc/1.
    authored

May 19, 2013

  1. Michael Santos

    Remove unused function

    authored

May 18, 2013

  1. Michael Santos

    Bump minor version for getsockopt/4

    authored

May 17, 2013

  1. Michael Santos

    Merge branch 'master' of github.com:msantos/procket

    Conflicts:
    	c_src/procket.c
    authored
  2. Michael Santos

    Add support for getsockopt(2)

    authored

May 03, 2013

  1. Michael Santos

    Whitespace cleanup

    authored
  2. Michael Santos

    Sort NIF functions by arity/alphabetically

    authored
  3. Michael Santos

    Copyright heartbeat, adjust version to semver

    authored
Something went wrong with that request. Please try again.