github.com/la5nta/wl2k-go@v0.11.8/transport/ax25/ax25_other.go (about) 1 // Copyright 2015 Martin Hebnes Pedersen (LA5NTA). All rights reserved. 2 // Use of this source code is governed by the MIT-license that can be 3 // found in the LICENSE file. 4 5 //go:build !(libax25 && cgo) 6 // +build !libax25 !cgo 7 8 package ax25 9 10 import ( 11 "context" 12 "errors" 13 "net" 14 "time" 15 ) 16 17 var ErrNoLibax25 = errors.New("AX.25 support not included in this build") 18 19 func ListenAX25(axPort, mycall string) (net.Listener, error) { 20 return nil, ErrNoLibax25 21 } 22 23 func DialAX25Timeout(axPort, mycall, targetcall string, timeout time.Duration) (*Conn, error) { 24 return nil, ErrNoLibax25 25 } 26 27 func DialAX25(axPort, mycall, targetcall string) (*Conn, error) { 28 return nil, ErrNoLibax25 29 } 30 31 func DialAX25Context(ctx context.Context, axPort, mycall, targetcall string) (*Conn, error) { 32 return nil, ErrNoLibax25 33 }