Commit Graph

30 Commits

Author SHA1 Message Date
Ian Gulliver
fdafe2e055 Convenience function for simple hello. 2016-02-28 12:45:00 -08:00
Ian Gulliver
153544c8b2 Fix crash sending protocols without a greeting. 2016-02-27 22:03:56 -08:00
Ian Gulliver
071613d061 Use static greeting buffers. 2016-02-27 16:23:26 -08:00
Ian Gulliver
2c5b6419d6 Working TCP fastopen for connect-send. 2016-02-27 12:41:56 -08:00
Ian Gulliver
d6cb3afd9d Centralize packet sanity checks, and bound one value that was overflowing. 2016-02-26 14:55:43 -08:00
Ian Gulliver
8d9a11076b Add an always trigger list, so we can handle non-socket IO properly. 2016-02-26 11:12:45 -08:00
Ian Gulliver
680cce544f Centralized list implementation. 2016-02-26 10:30:18 -08:00
Ian Gulliver
19a9d498bd Enable -Weverything, fix a ton of bugs. 2016-02-25 23:37:37 -08:00
Ian Gulliver
fe2486c398 Enable shadow warnings, fix one case. 2016-02-25 21:24:10 -08:00
Ian Gulliver
092764bf7e Fix send behavior, again, to not use read as a proxy for write. 2016-02-25 21:22:59 -08:00
Ian Gulliver
a9dc7c25db Switch back to write(), since we have non-sockets. 2016-02-25 16:33:47 -08:00
Ian Gulliver
5e604f0596 In/out reference counting. 2016-02-25 16:17:25 -08:00
Ian Gulliver
3816be8b3d Fix leak of second+ receive/send object. 2016-02-25 15:17:45 -08:00
Ian Gulliver
6f082ecf32 Use send(MSG_NOSIGNAL) instead of write() in one other place. 2016-02-25 11:56:51 -08:00
Ian Gulliver
b4171c971a Avoid double call of send_del() on write failure and from epoll loop. 2016-02-24 21:30:39 -08:00
Ian Gulliver
a408ddba2d Switch from shutdown(SHUT_RD) to EPOLLIN to detect send <-> send misconfigurations. 2016-02-24 21:21:14 -08:00
Ian Gulliver
4a83b453bb Ask for SIGPIPE not to be sent, instead of ignoring it. 2016-02-24 20:28:48 -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
025d14c6a6 Add framing to proto, since it isn't built in to protobuf. 2016-02-23 21:30:29 -08:00
Ian Gulliver
819518e402 Proto serialization support. 2016-02-23 16:13:11 -08:00
Ian Gulliver
d2e521e90c json input support, some shutdown fixes. json needs cleanup. 2016-02-23 13:49:23 -08:00
Ian Gulliver
2ce2ed5bf5 Split out packet. Delete common. 2016-02-22 16:58:13 -08:00
Ian Gulliver
b5ab0cb0a6 Split out peer 2016-02-22 16:49:43 -08:00
Ian Gulliver
b5219d9c1a Split out buf 2016-02-22 16:41:34 -08:00
Ian Gulliver
d6a629fa7e Switch to an internal implementation of uuid generation, so we can use the randomness pool. 2016-02-22 16:27:44 -08:00
Ian Gulliver
c5a87e89a4 Restore airspy_adsb 2016-02-21 16:52:36 -08:00
Ian Gulliver
9df778a88a Factor out opts parsing, clean up shutdown. 2016-02-20 23:22:00 -08:00
Ian Gulliver
bca84394ce Remove airspy_adsb, as it's no longer used by upstream 2016-02-18 17:00:33 -08:00
Ian Gulliver
cf6eef6118 Move adsbus into its own dir. 2016-02-18 09:36:53 -08:00