Skip to content

Tags: msantos/procket

Tags

v0.9.9

Toggle v0.9.9's commit message
0.9.9

Bump version to release a new hex.pm package: the 0.9.8 hex package
mistakenly included compiled artifacts causing builds to fail:

https://preview.hex.pm/preview/procket/0.9.8/show/c_src/libancillary.a

Reported in msantos/gen_icmp#21

Thanks @walkr !

v0.9.8

Toggle v0.9.8's commit message
0.9.8

v0.9.7

Toggle v0.9.7's commit message
0.9.7

0.9.6

Toggle 0.9.6's commit message
0.9.6

Fixes #52

Thanks @evanmcc!

0.9.3

Toggle 0.9.3's commit message
mktmp: fix off by one

Reported in:

#41

Thanks @tduccuong!

0.9.2

Toggle 0.9.2's commit message
0.9.2: updates for hex.pm

0.9.0

Toggle 0.9.0's commit message
Release 0.9.0

0.8.0

Toggle 0.8.0's commit message
README: fix example

When passing in an fd to gen_udp:open/2, the port must be set to 0. The
examples were fixed way back in b5c16f.

#26

Thanks @philipcristiano!

0.7.0

Toggle 0.7.0's commit message
Return number of bytes for partial writes

The write functions (sendto/4, sendmsg/5, write/2, writev/2) have had a
long standing bug where failure to write the complete buffer was
silently ignored.

Return a tuple containing the number of bytes written if the complete
buffer could not be sent. Writes can be continued using something like:

    write_exact(FD, Buf) ->
        case procket:write(FD, Buf) of
            ok ->
                ok;
            {ok, N} - >
                {_:N/bytes, Rest/binary} = Buf,
                write_exact(FD, Rest);
            Error ->
                Error
        end.

Successful writes of the entire buffer still return 'ok'.