...
Run Format

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

View as plain text