Commit Graph

93 Commits (master)

Author SHA1 Message Date
Radu Iliescu d386a4b496 build: fix all build warnings 2018-12-03 08:20:51 -05:00
Radu Iliescu 8d3957f3b8 Makefile: refactor CFLAGS to come from main Makefile
Also remove CC and link flags since linking is done in main Makefile
2018-12-03 07:22:33 -05:00
Radu Iliescu d3858ffc26 Makefile: refactor include files
Now major include files are comming from main Makefile,
module need to add just their specific include path.
To work make the include path absolute.
2018-11-29 07:15:27 -05:00
Jose Marcial Vieira Bisneto b0b18632f9
Fixed secio protocol request coming with length. 2018-11-16 11:20:06 -03:00
Jose Marcial Vieira Bisneto f04fa5c9e5
Removed send protocol since it was sent before.
libp2p_secio_stream_new already calls libp2p_secio_send_protocol
2018-11-01 23:15:24 -03:00
John Jones e67d626000 Added buffering to yamux 2017-11-30 14:32:36 -05:00
John Jones 0d4d475c2c Swarm now functioning with yamux. Still needs more debugging. 2017-11-28 22:44:18 -05:00
John Jones 7c62bdfbb7 debugging yamux and go 2017-11-27 09:06:33 -05:00
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 5e1cdac4cf Moved buffered secio to context struct 2017-11-02 13:43:52 -05:00
John Jones 65194c06ee secio and multistream now working. Need to negotiate yamux 2017-11-02 13:20:40 -05:00
John Jones 746682ebef Fixed signature verification, continuing with swarm connectivity 2017-11-02 11:11:50 -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 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
John Jones 198e5d544a secio unencrypted read fix 2017-09-28 16:31:35 -05:00
John Jones c62253dce0 Don't attempt to connect to yourself using secio 2017-09-28 13:48:35 -05:00
jmjatlanta bf1f900716 more debugging 2017-09-28 13:21:07 -05:00
John Jones c56d58f404 error handling 2017-09-25 17:55:45 -05:00
jmjatlanta a810f94757 implementation of dht_send_message_nearest_x 2017-09-18 06:32:37 -05:00
John Jones e922c7ef14 Implemented put_value 2017-09-14 11:35:16 -05:00
John Jones 09e2a2291f Small memory leak fix for protocol comparison 2017-09-07 18:46:03 -05:00
John Jones 9fd44b7878 implementing handler interface in front of multistream 2017-09-04 11:01:17 -05:00
John Jones 53f754af43 Adding more compatibility fixes for standard ipfs 2017-08-31 16:40:35 -05:00
John Jones 36061dc1da Small adjustments for secio protocol compatibility 2017-08-31 12:49:43 -05:00
jmjatlanta eecfea4f78 journalio working, needs tuning 2017-08-31 06:41:06 -05:00
jmjatlanta f0d82129ab Debugging journalio process 2017-08-30 11:09:28 -05:00
jmjatlanta a009673969 Added some debugging information to protocols 2017-08-09 12:08:57 -05:00
jmjatlanta bff867ae4d logic fix 2017-08-09 11:12:16 -05:00
John Jones f84ec579f2 Making it easier to create secio connections 2017-08-09 10:57:17 -05:00
jmjatlanta 9cdc0bd54e Properly reading the remote's proposal 2017-08-09 10:32:01 -05:00
jmjatlanta 8ff5020088 Reverting back to specific network reads and writes 2017-08-09 10:23:24 -05:00
jmjatlanta 563a89150d Working with secio negotiation 2017-08-09 10:09:28 -05:00
John Jones 1e7806855d Using muiltistream protocol to begin secio negotiation 2017-08-09 09:46:53 -05:00
jmjatlanta 4f52a20314 Handling secio negotiation differently to comply with protocol 2017-08-09 09:12:16 -05:00
John Jones 6f77a64adb IPFS protocols now implement an interface to make marshalling easier 2017-08-09 08:03:40 -05:00
jmjatlanta a8f4925bbe Properly setting session context 2017-08-03 17:48:11 -05:00
jmjatlanta c639359a4a Moving addition to peerstore after everyting is done 2017-08-03 14:43:19 -05:00
jmjatlanta 7155f604c1 Fixed overwrite of session context 2017-08-03 14:34:40 -05:00
jmjatlanta 48c4b5ade0 Cleaning up bad connections 2017-08-03 12:17:17 -05:00
jmjatlanta 61a576eb93 Handling details of bitswap and connection pool 2017-08-03 11:15:40 -05:00
jmjatlanta 3137d9efa6 Now a successful secio connection adds the peer to the peerstore 2017-07-31 16:36:08 -05:00
jmjatlanta 8c1c813643 sanity check
additional sanity check in peerstore and saving remote peer id when
connecting with secio
2017-07-31 15:18:17 -05:00
John Jones 90b1e2c3c8 return on timeout 2017-07-31 10:00:32 -05:00
John Jones 1971e60438 Cleanup of needless Stream attached to things it shouldn't have 2017-07-27 12:06:27 -05:00