Documentation ¶
Index ¶
- func Bandwidths() []string
- type Addr
- type Modem
- func (m *Modem) Abort() error
- func (m *Modem) Accept() (net.Conn, error)
- func (m *Modem) Addr() net.Addr
- func (m *Modem) Busy() bool
- func (m *Modem) Close() error
- func (m *Modem) DialURL(url *transport.URL) (net.Conn, error)
- func (m *Modem) DialURLContext(ctx context.Context, url *transport.URL) (net.Conn, error)
- func (m *Modem) Ping() bool
- func (m *Modem) SetPTT(ptt transport.PTTController)
- func (m *Modem) Version() (string, error)
- type ModemConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bandwidths ¶
func Bandwidths() []string
Types ¶
type Modem ¶
type Modem struct {
// contains filtered or unexported fields
}
func NewModem ¶
func NewModem(scheme string, myCall string, config ModemConfig) (*Modem, error)
NewModem initializes configuration for a new VARA modem client stub.
func (*Modem) Close ¶
Close closes the RF and then the TCP connections to the VARA modem. Blocks until finished.
func (*Modem) DialURLContext ¶
DialURLContext dials varafm/varahf URLs with cancellation support.
If the context is cancelled while dialing, the connection may be closed gracefully before returning an error. Use Abort() for immediate cancellation of a dial operation.
func (*Modem) SetPTT ¶
func (m *Modem) SetPTT(ptt transport.PTTController)
SetPTT injects the PTTController (probably hooked to a transceiver) that should be controlled by the modem.
If nil, the PTT request from the TNC is ignored. VOX may still work.
type ModemConfig ¶
type ModemConfig struct { // Host on the network which is hosting VARA; defaults to `localhost` Host string // CmdPort is the TCP port on which to reach VARA; defaults to 8300 CmdPort int // DataPort is the TCP port on which to exchange over-the-air payloads with VARA; // defaults to 8301 DataPort int }
ModemConfig defines configuration options for connecting with the VARA modem program.