2022-07-28 11:00:05 -04:00
|
|
|
package conf
|
|
|
|
|
2023-05-18 21:49:31 -04:00
|
|
|
type ConnectionConfig struct {
|
2022-09-12 23:08:20 -04:00
|
|
|
Handshake uint32 `yaml:"handshake"`
|
|
|
|
ConnIdle uint32 `yaml:"connIdle"`
|
|
|
|
UplinkOnly uint32 `yaml:"uplinkOnly"`
|
|
|
|
DownlinkOnly uint32 `yaml:"downlinkOnly"`
|
|
|
|
BufferSize int32 `yaml:"bufferSize"`
|
2022-07-28 11:00:05 -04:00
|
|
|
}
|
|
|
|
|
2023-05-18 21:49:31 -04:00
|
|
|
func NewConnectionConfig() *ConnectionConfig {
|
|
|
|
return &ConnectionConfig{
|
2022-07-28 11:00:05 -04:00
|
|
|
Handshake: 4,
|
|
|
|
ConnIdle: 30,
|
|
|
|
UplinkOnly: 2,
|
|
|
|
DownlinkOnly: 4,
|
|
|
|
BufferSize: 64,
|
|
|
|
}
|
|
|
|
}
|