Commit Graph

28 Commits

Author SHA1 Message Date
Jeffrey Altman
51912c0215 roken: introduce rk_socket_set_keepalive
Change-Id: I3086a10cd3d23bef00336f5db7db3a35ca02d568
2020-07-24 01:32:34 -04:00
Jeffrey Altman
9547a2ca9e Avoid unused variable warning on Windows
Windows has neither O_NONBLOCK nor FIOBIO and sockets aren't file
descriptors in any case.  Avoid warning that 'flags' is unused in
socket_set_nonblocking().

Change-Id: I431cfae3a88577e75b5230f645639b5a17832f5c
2013-06-22 21:17:20 -04:00
Love Hornquist Astrand
087c859db6 add socket_set_nonblocking 2012-12-20 12:03:54 +01:00
Love Hornquist Astrand
0879b9831a remove trailing whitespace 2011-05-21 11:57:31 -07:00
Love Hornquist Astrand
bad0e733c5 less exit with failures 2010-11-29 09:31:07 -08:00
Asanka Herath
04a7eaa170 Call ioctlsocket() indirectly
We were calling ioctlsocket() through a macro.  However, due to type
safety issues, we have to call it indirectly through rk_SOCK_IOCTL().
2010-08-20 13:03:40 -04:00
Love Hornquist Astrand
908ece3604 Adapt for Linux with SOCK_CLOEXEC, patch from Harald Barth 2010-01-26 10:46:51 -08:00
Love Hornquist Astrand
4376b6c8b1 spelling 2010-01-25 23:50:37 -08:00
Love Hornquist Astrand
2fbdb6a514 rewrite socket to rk_socket of there is SOCK_CLOEXEC and there is linux, prompted by Harald Barth 2010-01-25 23:01:18 -08:00
Asanka Herath
d00f9984a5 Make roken build on windows
Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2009-11-24 21:42:02 -08:00
Love Hörnquist Åstrand
a50b14f32b more const-ification
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25209 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-05-09 14:22:43 +00:00
Love Hörnquist Åstrand
0d31d3d686 drop rcsid
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24356 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-25 00:30:37 +00:00
Love Hörnquist Åstrand
6937d41a02 remove trailing whitespace
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23815 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 09:21:03 +00:00
Love Hörnquist Åstrand
e172367898 switch to utf8 encoding of all files
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23814 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 08:53:55 +00:00
Love Hörnquist Åstrand
5cd0815781 use "roken.h" consitantly
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21005 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-08 01:54:35 +00:00
Love Hörnquist Åstrand
9df9f6a9da revert 21003
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21004 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-08 01:53:10 +00:00
Love Hörnquist Åstrand
12df8538af use "roken.h" consitantly
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21003 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-08 01:42:05 +00:00
Love Hörnquist Åstrand
2016626451 Add socket_set_ipv6only.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16005 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-09-01 18:48:17 +00:00
Love Hörnquist Åstrand
101d943acc avoid shadowing sin
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15412 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-06-16 16:53:09 +00:00
Love Hörnquist Åstrand
709aa58c74 define ROKEN_LIB_FUNCTION on all exported functions
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14773 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-12 11:29:18 +00:00
Love Hörnquist Åstrand
a3521e0755 (socket_set_tos): if setsockopt failed with EINVAL failed, just ignore
it, sock was probably a just a non AF_INET socket


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12015 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-04-15 03:26:51 +00:00
Johan Danielsson
dd4b4a1159 restrict is a keyword
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10647 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-09-03 12:04:34 +00:00
Jacques A. Vidrine
c77bd77f26 On systems with IP_PORTRANGE, have ftpd use `high-numbered'
ports by default.  Add a -U option to get the old behavior.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10583 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-08-28 19:02:16 +00:00
Assar Westerlund
3a9610836f remove all superfluous header files
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8842 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-07-27 04:41:06 +00:00
Assar Westerlund
5515fde49a merge roken independence stuff
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8597 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-07-08 14:22:12 +00:00
Johan Danielsson
3ca5f8150f remove advertising clause
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7463 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-02 16:58:55 +00:00
Assar Westerlund
839462a096 const-ize and comment
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7131 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-10-10 04:55:42 +00:00
Assar Westerlund
bf5040c5b5 moved here from appl/ftp/common
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6655 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-07-28 21:18:41 +00:00