github.com/yggdrasil-network/yggdrasil-go@v0.5.6/src/core/link_tcp_other.go (about)

     1  //go:build !darwin && !linux
     2  // +build !darwin,!linux
     3  
     4  package core
     5  
     6  import (
     7  	"syscall"
     8  )
     9  
    10  // WARNING: This context is used both by net.Dialer and net.Listen in tcp.go
    11  
    12  func (t *linkTCP) tcpContext(network, address string, c syscall.RawConn) error {
    13  	return nil
    14  }
    15  
    16  func (t *linkTCP) getControl(sintf string) func(string, string, syscall.RawConn) error {
    17  	return t.tcpContext
    18  }