// Copyright 2009 The Go Authors. All rights reserved.// Use of this source code is governed by a BSD-style// license that can be found in the LICENSE file.//go:build unix || windowspackage pollimport// SetsockoptInt wraps the setsockopt network call with an int argument.func ( *FD) (, , int) error {if := .incref(); != nil {return }defer .decref()returnsyscall.SetsockoptInt(.Sysfd, , , )}// SetsockoptInet4Addr wraps the setsockopt network call with an IPv4 address.func ( *FD) (, int, [4]byte) error {if := .incref(); != nil {return }defer .decref()returnsyscall.SetsockoptInet4Addr(.Sysfd, , , )}// SetsockoptLinger wraps the setsockopt network call with a Linger argument.func ( *FD) (, int, *syscall.Linger) error {if := .incref(); != nil {return }defer .decref()returnsyscall.SetsockoptLinger(.Sysfd, , , )}// GetsockoptInt wraps the getsockopt network call with an int argument.func ( *FD) (, int) (int, error) {if := .incref(); != nil {return -1, }defer .decref()returnsyscall.GetsockoptInt(.Sysfd, , )}
The pages are generated with Goldsv0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds.