Commit Graph

24 Commits

Author SHA1 Message Date
Ian Gulliver
ff4f4da608 deheader cleanup 2016-03-07 15:19:00 -08:00
Ian Gulliver
46696933aa Add --log-file 2016-03-07 11:26:25 -08:00
Ian Gulliver
455bee2676 Use some magic devices to prevent users hurting themselves with --file-read=/dev/stdin as we re-use fd 0 2016-03-03 21:27:16 -08:00
Ian Gulliver
939b3b1851 Add send-receive channels 2016-03-03 18:28:34 -08:00
Ian Gulliver
2f6db632b2 Get everyone out of flow's business. 2016-03-02 22:25:56 -08:00
Ian Gulliver
20bc50795d Move fd flow code into flow.c 2016-03-02 19:16:23 -08:00
Ian Gulliver
a093b8a1b6 Switch from dup() + fcntl(F_SETFL, FD_CLOEXEC) to fcntl(F_DUPFD_CLOEXEC) to save a second syscall. 2016-02-29 22:03:04 -08:00
Ian Gulliver
b106887617 Clean up file and hello messes. 2016-02-29 20:49:36 -08:00
Ian Gulliver
90de5b80bc Hide more interfaces behind the flow code. 2016-02-29 20:16:57 -08:00
Ian Gulliver
3fb3c02cf5 Encapsulate flow descriptions inside a struct. 2016-02-29 17:12:06 -08:00
Ian Gulliver
58a8576da8 Add --exec-{send,receive} 2016-02-28 15:53:55 -08:00
Ian Gulliver
29d0b33161 Set FD_CLOEXEC after dup() 2016-02-28 13:15:12 -08:00
Ian Gulliver
e86ea97671 --file-{read,write,append} 2016-02-28 13:08:04 -08:00
Ian Gulliver
fdafe2e055 Convenience function for simple hello. 2016-02-28 12:45:00 -08:00
Ian Gulliver
4f0b2c82e9 Write header to stdout target. 2016-02-27 21:56:37 -08:00
Ian Gulliver
2c5b6419d6 Working TCP fastopen for connect-send. 2016-02-27 12:41:56 -08:00
Ian Gulliver
19a9d498bd Enable -Weverything, fix a ton of bugs. 2016-02-25 23:37:37 -08:00
Ian Gulliver
5e604f0596 In/out reference counting. 2016-02-25 16:17:25 -08:00
Ian Gulliver
4f14845c75 Rename --dump to --stdout. Add --stdin. 2016-02-25 15:12:16 -08:00
Ian Gulliver
3e2c426e95 Fix --connect-send. Half-close connections so we can detect two read sockets talking to each other. 2016-02-24 20:25:31 -08:00
Ian Gulliver
1635534243 Switch from sketchy dup() juggling to callbacks to retry outgoing connection. 2016-02-24 20:15:09 -08:00
Ian Gulliver
d2e521e90c json input support, some shutdown fixes. json needs cleanup. 2016-02-23 13:49:23 -08:00
Ian Gulliver
0e8dd4007c Factor out more common code in opts parsing. 2016-02-20 23:31:57 -08:00
Ian Gulliver
9df778a88a Factor out opts parsing, clean up shutdown. 2016-02-20 23:22:00 -08:00