Files
Reticulum-Go/pkg/interfaces/tcp_common.go
Sudo-Ivan d6e0874f05
All checks were successful
TinyGo Build / tinygo-build-all (push) Successful in 2m39s
Add missing TCP timeout stubs for TinyGo
2025-12-31 22:54:29 -06:00

26 lines
477 B
Go

// SPDX-License-Identifier: 0BSD
// Copyright (c) 2024-2026 Sudo-Ivan / Quad4.io
//go:build !linux || tinygo
// +build !linux tinygo
package interfaces
import (
"time"
)
// platformGetRTT is defined in OS-specific files
// Default implementation for non-Linux platforms
func platformGetRTT(fd uintptr) time.Duration {
return 0
}
func (tc *TCPClientInterface) setTimeoutsLinux() error {
return nil
}
func (tc *TCPClientInterface) setTimeoutsOSX() error {
return nil
}