hopp/metadapt/metadapt.go

22 lines
714 B
Go
Raw Normal View History

2025-01-09 00:31:15 -07:00
// Package metadapt implements the Message and Transaction Demarcation Protocol.
package metadapt
// TODO: create interfaces for underlying connections for A and B, also have
// A and B fulfill hopp.Conn.
// A implements METADAPT-A over a singular stream-oriented transport such as TCP
// or UNIX domain stream sockets.
type A struct {
// Underlying specifies the underlying connection. It must be set before
// calling methods on this object.
Underlying ATransport
}
// B implements METADAPT-B over a multiplexed stream-oriented transport such as
// QUIC.
type B struct {
// Underlying specifies the underlying connection. It must be set before
// calling methods on this object.
Underlying BTransport
}