Source File
cgo_sockold.go
Belonging Package
net
// Code generated by cmd/cgo; DO NOT EDIT.//line /usr/local/Cellar/go/1.16.6/libexec/src/net/cgo_sockold.go:1:1// Copyright 2015 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.// +build cgo,!netgo// +build aix darwin dragonfly freebsd netbsd openbsdpackage net/*#include <sys/types.h>#include <sys/socket.h>#include <netinet/in.h>*/import _import ()func ( IP) * /*line :23:31*/_Ctype_struct_sockaddr /*line :23:48*/ {:= syscall.RawSockaddrInet4{Len: syscall.SizeofSockaddrInet4, Family: syscall.AF_INET}copy(.Addr[:], )return (* /*line :26:11*/_Ctype_struct_sockaddr /*line :26:28*/)(unsafe.Pointer(&))}func ( IP, int) * /*line :29:41*/_Ctype_struct_sockaddr /*line :29:58*/ {:= syscall.RawSockaddrInet6{Len: syscall.SizeofSockaddrInet6, Family: syscall.AF_INET6, Scope_id: uint32()}copy(.Addr[:], )return (* /*line :32:11*/_Ctype_struct_sockaddr /*line :32:28*/)(unsafe.Pointer(&))}
![]() |
The pages are generated with Golds v0.3.6. (GOOS=darwin 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. |