File: tcp_stub.go

package info (click to toggle)
golang-github-xtaci-tcpraw 1.2.25-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 96 kB
  • sloc: makefile: 3
file content (20 lines) | stat: -rw-r--r-- 397 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// +build !linux

package tcpraw

import (
	"errors"
	"net"
)

type TCPConn struct{ *net.UDPConn }

// Dial connects to the remote TCP port,
// and returns a single packet-oriented connection
func Dial(network, address string) (*TCPConn, error) {
	return nil, errors.New("os not supported")
}

func Listen(network, address string) (*TCPConn, error) {
	return nil, errors.New("os not supported")
}