Skip to content

Commit f8662b3

Browse files
committed
docs
1 parent 2276507 commit f8662b3

File tree

3 files changed

+4
-12
lines changed

3 files changed

+4
-12
lines changed

include/scl/net/loopback.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ namespace scl::details {
2727

2828
/**
2929
* @brief A loopback channel.
30+
* @ingroup net
3031
*
3132
* This Channel implementation defines a channel which connects to in-memory
3233
* buffers. This channel is useful as a channel used by a party that talks with

include/scl/net/network.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ namespace scl {
2929

3030
/**
3131
* @brief A Network.
32+
* @ingroup net
3233
*
3334
* <p>A Network is effectively a list of Channel's with a bunch of helper
3435
* functions and is the main interface that an MPC protocol will use to

include/scl/net/packet.h

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ namespace scl {
2828

2929
/**
3030
* @brief A container for data to be sent on a Channel.
31+
* @ingroup net
3132
*
32-
* <p>A Packet is container that serializes all writes and deserializes all
33+
* A Packet is container that serializes all writes and deserializes all
3334
* reads. Packet can therefore be used to construct content that is meant to be
3435
* sent over a Channel. Example usage:
3536
*
@@ -48,17 +49,6 @@ namespace scl {
4849
* auto v = p.read<int>(); // read the integer written above
4950
* auto f = p.read<math::FF<T>>(); // read the FF element.
5051
* @endcode
51-
*
52-
* <p>Packet is essentially a struct with the following format
53-
*
54-
* @code
55-
* struct Packet {
56-
* unsigned char* buffer; // data
57-
* std::size_t cap; // number of bytes allocated
58-
* std::ptrdiff_t read_ptr; // pointer into buffer
59-
* std::ptrdiff_t write_ptr; // pointer into buffer
60-
* };
61-
* @endcode
6252
*/
6353
class Packet {
6454
private:

0 commit comments

Comments
 (0)