Black Lives Matter. Support the Equal Justice Initiative.

Source file src/net/sockopt_stub.go

Documentation: net

     1  // Copyright 2011 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
     6  // +build js,wasm
     7  
     8  package net
     9  
    10  import "syscall"
    11  
    12  func setDefaultSockopts(s, family, sotype int, ipv6only bool) error {
    13  	return nil
    14  }
    15  
    16  func setDefaultListenerSockopts(s int) error {
    17  	return nil
    18  }
    19  
    20  func setDefaultMulticastSockopts(s int) error {
    21  	return nil
    22  }
    23  
    24  func setReadBuffer(fd *netFD, bytes int) error {
    25  	return syscall.ENOPROTOOPT
    26  }
    27  
    28  func setWriteBuffer(fd *netFD, bytes int) error {
    29  	return syscall.ENOPROTOOPT
    30  }
    31  
    32  func setKeepAlive(fd *netFD, keepalive bool) error {
    33  	return syscall.ENOPROTOOPT
    34  }
    35  
    36  func setLinger(fd *netFD, sec int) error {
    37  	return syscall.ENOPROTOOPT
    38  }
    39  

View as plain text