0.2.7 Aug 16, 2022
0.2.6 Aug 13, 2022
0.2.2 Jul 22, 2022
0.1.7 Jul 9, 2022
0.1.0 May 27, 2022

#47 in #technology

21 downloads per month
Used in 62 crates (6 directly)

Apache-2.0

115KB
2.5K SLoC

Aptos Banner

License Lint+Test codecov Discord chat

Aptos is a layer 1 blockchain bringing a paradigm shift to Web3 through better technology and user experience. Built with Move to create a home for developers building next-gen applications.

Getting Started

Contributing

You can learn more about contributing to the Aptos project by reading our Contribution Guide and by viewing our Code of Conduct.

Aptos Core is licensed under Apache 2.0.


lib.rs:

This provides a simple networking substrate between a client and server. It is assumed that all operations are blocking and return only complete blocks of data. The intended use case has the server blocking on read. Upon receiving a payload during a read, the server should process the payload, write a response, and then block on read again. The client should block on read after performing a write. Upon errors or remote disconnections, the call (read, write) will return an error to let the caller know of the event. A follow up call will result in the service attempting to either reconnect in the case of a client or accept a new client in the case of a server.

Internally both the client and server leverage a NetworkStream that communications in blocks where a block is a length prefixed array of bytes.

Dependencies

~11–24MB
~374K SLoC