func Accept(scid, odcid []byte, config *Config) (*Conn, error) {
	return newConn(config, scid, odcid, false)
}
Accept creates a server connection.
scid is the source connection id.
odcid is the optional original destination connection id.
package transport
import (
	"bytes"
	"crypto/tls"
	"time"
)
type connectionState uint8
const (
	stateAttempted connectionState = iota
	stateHandshake
	stateActive
	stateDraining
	stateClosed
)
var connectionStateNames = [...]string{
	stateAttempted: "attempted",
	stateHandshake: "handshake",
	stateActive:    "active",
	stateDraining:  "draining",
	stateClosed:    "closed",
}
func (s connectionState) String() string {
	return connectionStateNames[s]
}
type ConnectionState struct {
	State string  
	RecvPackets uint64
	RecvBytes   uint64
	SentPackets uint64
	SentBytes   uint64
	LostPackets uint64
	LostBytes   uint64
	PeerParams Parameters
	TLS tls.ConnectionState
	LocalError error
	PeerError  error
}
type Conn struct {
	scid  []byte  
	dcid  []byte  
	odcid []byte  
	rscid []byte  
	token []byte  
	packetNumberSpaces [packetSpaceCount]*packetNumberSpace
	streams            streamMap
	datagram           Datagram
	localParams Parameters
	peerParams  Parameters
	handshake tlsHandshake
	recovery  lossRecovery
	flow      flowControl
	timeFn func() time.Time  
	idleTimer     time.Time  
	drainingTimer time.Time  
	pathResponse []byte  
	localError *Error  
	peerError  *Error  
	events []Event
	logEventFn func(LogEvent)
	sentPackets uint64
	sentBytes   uint64
	recvPackets uint64
	recvBytes   uint64
	invalidPackets uint  
	version               uint32
	state                 connectionState
	isClient              bool
	gotPeerCID            bool
	didRetry              bool
	didVersionNegotiation bool
	peerAddressVerified   bool  
	ackElicitingSent      bool  
	handshakeConfirmed    bool  
	derivedInitialSecrets bool
	updateMaxData         bool  
}
func Connect(scid, dcid []byte, config *Config) (*Conn, error) {
	return newConn(config, scid, dcid, true)
}