summaryrefslogtreecommitdiff
path: root/src/sys/socket/consts.rs
AgeCommit message (Collapse)Author
2016-01-29Convert MSG_ flags to bitflags! type.Philipp Matthias Schaefer
2016-01-28Netlink bitsAlexander Polakov
2016-01-18improve bsd unixes ipv6 supportarthurprs
2016-01-18Disable IPV6_ADD_MEMBERSHIP on freebsdUser Vagrant
2016-01-18fix on macMattis Marjak
2015-12-03NetBSD tweaks for kqueue supportZachary Tong
2015-11-20netbsd supportJeremy Fitzhardinge
2015-10-06Add support for sendmsg(2), recvmsg(2), and cmsg(3)Geoffrey Thomas
The best specification for control message layout appears to be [RFC 2292, section 4](https://tools.ietf.org/html/rfc2292#section-4), despite this not being a wire protocol. These definitions have also been checked against glibc 2.19 <bits/socket.h> and Linux 4.0 <linux/socket.h>, and tested on Debian 8.1 and FreeBSD 10.2 x86_64. The API differs a bit from the cmsg(3) API for type-safety reasons (and also because the cmsg(3) API is terrible). See test/sys/test_socket.rs for an example. Only supports SCM_RIGHTS at the moment. Fixes #88.
2015-09-28Revert "Add support for sendmsg(2), recvmsg(2), and cmsg(4)"Carl Lerche
This reverts commit 046af7d1ba82506f9bc48e62ac0584361025fc02.
2015-09-24Add support for sendmsg(2), recvmsg(2), and cmsg(4)Geoffrey Thomas
The best specification for control message layout appears to be [RFC 2292, section 4](https://tools.ietf.org/html/rfc2292#section-4), despite this not being a wire protocol. These definitions have also been checked against glibc 2.19 <bits/socket.h> and Linux 4.0 <linux/socket.h>, and tested on Debian 8.1 and FreeBSD 10.2 x86_64. The API differs a bit from the cmsg(4) API for type-safety reasons (and also because the cmsg(4) API is terrible). See test/sys/test_socket.rs for an example. Only supports SCM_RIGHTS at the moment. Fixes #88.
2015-09-09Add/Fix support for DragonFly BSDMichael Neumann
2015-09-03Fix test failures on FreeBSDGeoffrey Thomas
2015-07-13Remove import on those platforms where it is unused.Laurence Tratt
2015-07-06Consts are not on all kernelsTilde Engineering
2015-06-15TCP_KEEPALIVE, TCP_KEEPIDLE, split SockOpt traitY. T. Chung
* Split SockOpt trait into GetSockOpt and SetSockOpt. * Add support for TCP_KEEPALIVE & TCP_KEEPIDLE
2015-05-29Basic OpenBSD support.Laurence Tratt
Some of the tests are currently unrunnable, but the basic library is at least buildable.
2015-05-21Fix travis testsCarl Lerche
2015-05-21Test sockopt const valuesCarl Lerche
2015-05-21Add socket::shutdown functionhoxnox
libc::funcs::bsd43::shutdown is used
2015-05-11Get the library to build on freebsdAndrew J. Stone
`cargo build` works.
2015-05-07More multicast supportCarl Lerche
2015-03-13Amend some files to make it compile on arm-linux-androideabi.kennytm
2015-02-25Large cleanup, mostly of socket functionsCarl Lerche
2015-02-23Improve ergonomics of getsockopt / setsockoptCarl Lerche
2015-02-22Split up socket moduleCarl Lerche