mirror of
https://github.com/Quad4-Software/Reticulum-Go
synced 2026-08-29 23:48:44 -04:00
36 lines
678 B
Go
36 lines
678 B
Go
// SPDX-License-Identifier: Apache-2.0
|
|
// Copyright (c) 2024-2026 Quad4.io
|
|
|
|
//go:build tinygo
|
|
|
|
package sharedinstance
|
|
|
|
import (
|
|
"fmt"
|
|
"io"
|
|
"net"
|
|
)
|
|
|
|
type RPCServer struct{}
|
|
|
|
func (r *RPCServer) Close() error {
|
|
return nil
|
|
}
|
|
|
|
func AuthenticateClient(conn net.Conn, authkey []byte) error {
|
|
_ = conn
|
|
_ = authkey
|
|
return fmt.Errorf("shared instance RPC is not supported on TinyGo")
|
|
}
|
|
|
|
func SendFramed(w io.Writer, buf []byte) error {
|
|
_ = w
|
|
_ = buf
|
|
return fmt.Errorf("shared instance RPC is not supported on TinyGo")
|
|
}
|
|
|
|
func RecvFramed(r io.Reader, maxSize int) ([]byte, error) {
|
|
_ = r
|
|
_ = maxSize
|
|
return nil, fmt.Errorf("shared instance RPC is not supported on TinyGo")
|
|
}
|