Skip to content

Conversation

@MaxFangX
Copy link

Replaces #1

MaxFangX added 4 commits May 20, 2022 13:36
Squashed commits in original PR at
#1:

- Create empty lightning-net module
- SyncSocketDescriptor skeleton implementation
- Connection struct with read and write halves
- Implement shutdown() for TcpReader and TcpWriter
- Implement most of spawn_inbound_handler
- Add crossbeam and some associated channels
- Implement basic functionality of ConnectionWriter
- Pass a Arc<PeerManager> into ConnectionReader
- Get a SyncSocketDescriptor into the ConnectionWriter
- Implement first half of pausing reads
- Renome write tx/rx to write_data tx/rx
- Rename ConnectionReader/Writer to Reader/Writer
- Create the Reader/Writer cmd channels
- Send ResumeRead command to the Reader
- Remove write_cmd, rename reader_cmd -> resume_read
- Reader can handle ResumeRead events
- Implement disconnecting from peer
- send_data() actually sends data now
- Allow send_data() to pause reads
- Get a Arc<PeerManager> into Writer
- Refactor write_data tx/rx into writer_cmd tx/rx
- Give Reader/Writer a cmd tx for the other
- Implement all disconnecting except TcpDisconnectooor
- Remove the Arc<Mutex<Connection>>
- Refactor Connection into setup()
- disconnect_socket() now calls into TcpDisconnectooor
- Get a SyncSocketDescriptor into Writer
- Call write_buffer_space_avail and socket_disconnected v2
- resume_read check should go before the early return
- Handle read() ErrorKind variants
- Implement handle_connection and initiate_outbound
- Finish writing doc comments, clean up
- Basic tests for lightning-net
- These is modeled exactly after the tests in lightning-net-tokio
- Update GitHub CI and dependabot for lightning-net
- Reduce the dependencies used
- Implementing PR review feedback from @phlip9
- Remove some comments about SGX
- Hide ID_COUNTER in a function, return JoinHandles
- Reader/Writer now send commands via the descriptor
- Extract do_recv(), do_try_recv(), do_read() fns v2
- Split WriteData command into its own channel v4
- Remove `std::net` limitations from EDP doc comment
- Implement ReaderState enum v2
@MaxFangX MaxFangX merged commit e455241 into main May 20, 2022
@MaxFangX MaxFangX deleted the net-sync-final branch May 20, 2022 20:37
@MaxFangX MaxFangX mentioned this pull request May 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants