Source file src/net/rawconn_stub_test.go

     1  // Copyright 2018 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  //go:build (js && wasm) || plan9
     6  
     7  package net
     8  
     9  import (
    10  	"errors"
    11  	"syscall"
    12  )
    13  
    14  func readRawConn(c syscall.RawConn, b []byte) (int, error) {
    15  	return 0, errors.New("not supported")
    16  }
    17  
    18  func writeRawConn(c syscall.RawConn, b []byte) error {
    19  	return errors.New("not supported")
    20  }
    21  
    22  func controlRawConn(c syscall.RawConn, addr Addr) error {
    23  	return errors.New("not supported")
    24  }
    25  
    26  func controlOnConnSetup(network string, address string, c syscall.RawConn) error {
    27  	return nil
    28  }
    29  

View as plain text