Ian Gulliver
|
3985182304
|
Stop relying on struct ordering and packing for peer.
|
2016-03-08 20:47:22 -08:00 |
|
Ian Gulliver
|
d39cd62991
|
Cleanup how we cast and close peers.
|
2016-03-08 20:41:00 -08:00 |
|
Ian Gulliver
|
cd302a1746
|
Move FORMAT parsing into send code.
|
2016-03-08 12:22:46 -08:00 |
|
Ian Gulliver
|
b434b67dd8
|
Switch to LOG macro
|
2016-03-07 17:02:24 -08:00 |
|
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
|
6480a960fa
|
Switch to standard logging framework
|
2016-03-05 22:54:26 -08:00 |
|
Ian Gulliver
|
06e73e2319
|
stutterfuzz: Fix crash when shutdown() returns ENOTCONN
|
2016-03-04 19:17:15 -08:00 |
|
Ian Gulliver
|
939b3b1851
|
Add send-receive channels
|
2016-03-03 18:28:34 -08:00 |
|
Ian Gulliver
|
77b9decbcd
|
Make send_get_hello public, so we can use it in send_receive
|
2016-03-02 22:30:45 -08:00 |
|
Ian Gulliver
|
10ba451458
|
Move more socket options into the flow framework.
|
2016-03-02 21:51:30 -08:00 |
|
Ian Gulliver
|
91775999d8
|
Rename socket_connected to socket_ready, since we use it before accept()
|
2016-03-02 19:28:02 -08:00 |
|
Ian Gulliver
|
b6a582e95a
|
Do flow-specific setsockopt() before accept()
|
2016-02-29 22:17:37 -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
|
aa11eea121
|
Move more socket code into socket.c
|
2016-02-28 22:21:07 -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
|
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 |
|