Commit graph

81 commits

Author SHA1 Message Date
John Jones
2d74c53b62 More yamux changes 2017-11-19 19:29:40 -05:00
John Jones
b3c8e77ed9 Various changes for yamux adding a protocol 2017-11-19 13:37:03 -05:00
John Jones
f2e5af4058 Major changes for implementation of yamux protocol
This commit changes the Stream interface, so as to allow the yamux
protocol to have channels. It is necessary, but touches many areas. The
codebase is better for it.
2017-11-08 10:51:43 -05:00
John Jones
f4860d3ed4 setting up when the remote requests the yamux protocol 2017-11-06 17:31:30 -05:00
John Jones
18b0139b81 squashed some memory leak bugs in yamux 2017-11-06 16:38:55 -05:00
John Jones
852629a4f8 More details of the yamux implementation 2017-11-06 13:36:11 -05:00
John Jones
746682ebef Fixed signature verification, continuing with swarm connectivity 2017-11-02 11:11:50 -05:00
John Jones
03a4b412dd More swarm changes 2017-10-25 12:43:27 -05:00
John Jones
08a02f7956 More changes to the stream negotiation 2017-10-25 12:28:53 -05:00
jmjatlanta
9dd1dab8e4 More implementation of dialer 2017-10-23 18:03:38 -05:00
jmjatlanta
05f2620054 More changes for dialer 2017-10-23 16:21:03 -05:00
jmjatlanta
1dcac6ecb5 Implementing the new way of swarm connection 2017-10-23 15:21:50 -05:00
jmjatlanta
8480542b45 Network write methods now expect StreamMessage struct 2017-10-23 09:47:54 -05:00
jmjatlanta
6147769f4b Reading from stream now uses StreamMessage struct 2017-10-23 09:01:03 -05:00
jmjatlanta
2391f23b4e Beginnings of stream locking 2017-10-12 12:37:40 -05:00
jmjatlanta
1565b78fcd more adjustments for yamux testing 2017-10-12 08:37:19 -05:00
jmjatlanta
07ca366e3a Fixed some memory issues with test_secio 2017-10-12 07:45:34 -05:00
John Jones
6c8535198f Testing for compatibility with other implementations 2017-10-04 06:39:35 -05:00
jmjatlanta
5712e920d1 datastore_put now accepts a DatastoreRecord struct 2017-09-13 12:39:50 -05:00
John Jones
36061dc1da Small adjustments for secio protocol compatibility 2017-08-31 12:49:43 -05:00
jmjatlanta
f0d82129ab Debugging journalio process 2017-08-30 11:09:28 -05:00
jmjatlanta
8ff5020088 Reverting back to specific network reads and writes 2017-08-09 10:23:24 -05:00
jmjatlanta
4f52a20314 Handling secio negotiation differently to comply with protocol 2017-08-09 09:12:16 -05:00
jmjatlanta
3137d9efa6 Now a successful secio connection adds the peer to the peerstore 2017-07-31 16:36:08 -05:00
John Jones
5406fb29e2 Chasing memory leak possibly in PeerStore 2017-07-31 14:51:29 -05:00
jmjatlanta
a137c2c43e Code Cleanup plus making providerstore smarter 2017-07-31 12:49:41 -05:00
jmjatlanta
dfb1aba247 Fixed warnings 2017-07-17 16:14:20 -05:00
John Jones
a10c7ef5e9 handle reading the requested number of bytes, and secio fix
Some transmissions are sent by multiple sends. Loop through until you
get them all. NOTE: We'll have to come back to this to handle a timeout.
Also, fixed the random handshake issue with the GO version.
2017-07-13 18:30:18 -05:00
John Jones
6c19984368 Now doing multistream over secio 2017-07-13 09:01:50 -05:00
John Jones
cff0e4d6aa Incremental commit for secio fixes and connecting to swarms 2017-07-13 07:27:10 -05:00
John Jones
ff4be03782 Better handling of locally stored files 2017-05-11 07:04:28 -05:00
John Jones
9caba0aa00 Memory fix in tcp_transport_dialer 2017-04-27 08:14:19 -05:00
John Jones
f061d03cfa Small fix to logging cleanup 2017-04-27 00:06:43 -05:00
John Jones
8ce1c32ec4 Multiple memory fixes, mostly in tests 2017-04-26 23:56:18 -05:00
John Jones
c1e7131c7c passing network timeouts to read methods 2017-04-17 14:03:27 -05:00
John Jones
f3de55999f Implemented find providers from remote peers 2017-04-16 23:46:52 -05:00
John Jones
9776ff15a0 c99 and endian changes for centos 2017-03-21 15:08:01 +00:00
John Jones
69cbff9cd6 Refactor - SecureSession to SessionContext 2017-03-19 07:42:52 -05:00
John Jones
dc1b8b6b3d Minor mod to Libp2pLinkedList 2017-03-13 08:53:20 -05:00
John Jones
d0512d9084 Made the stream methods more generic 2017-03-09 10:00:45 -05:00
John Jones
3d53c470a5 Correctly generating shared and stretched keys 2017-03-09 00:12:04 -05:00
John Jones
05cc6e9bd3 key exchange complete, nearing encrypted streams, mac invalid 2017-03-08 12:18:29 -05:00
John Jones
e092a0e974 Switched to ephemeral DH 2017-03-08 07:23:32 -05:00
John Jones
0e0b6b1546 Many bug fixes for secio 2017-03-06 19:03:04 -05:00
John Jones
6d9473069b Many fixes around secio 2017-03-02 16:14:52 -05:00
John Jones
f1aaae0f17 Implementing a Stream interface in front of Multistream 2017-02-23 15:16:04 -05:00
John Jones
8139dc9d48 Added ping functionality to multistream 2017-02-23 11:15:48 -05:00
John Jones
9f0ee0cdb9 Added peerstore and additional tests 2017-02-20 18:53:20 -05:00
John Jones
4555cdfdf1 Fixed bugs around libp2p_message 2017-02-20 09:31:59 -05:00
John Jones
7f00ce69fe Added test for record peer and fixes 2017-02-20 08:19:22 -05:00