blob: 7271f7a9f21d9e9b74d9f4aee3166235845e4029 [file] [log] [blame]
// Copyright 2015 The Vanadium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package vc
const (
// Maximum size (in bytes) of application data to write out in a single message.
MaxPayloadSizeBytes = 1 << 16 // 64KB
// Number of bytes that a receiver is willing to buffer for a flow.
DefaultBytesBufferedPerFlow = 1 << 20 // 1MB
// Maximum number of bytes to steal from the shared pool of receive
// buffers for the first write of a new Flow.
MaxSharedBytes = 1 << 12 // 4KB
// Number of VC IDs reserved for special use.
NumReservedVCs = 10
// Number of Flow IDs reserved for possible future use.
NumReservedFlows = 10
// Special Flow ID used for information specific to the VC
// (and not any specific flow)
SharedFlowID = 0
// Special flow used for authenticating between VCs.
AuthFlowID = 2
// Special flow used for interchanging of VOM types between VCs.
TypeFlowID = 3
// Special flow over which discharges for third-party caveats
// on the server's blessings are sent.
DischargeFlowID = 4
)