Source File
writev_unix.go
Belonging Package
net
// Copyright 2016 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 darwin dragonfly freebsd illumos linux netbsd openbsd
package net
import (
)
func ( *conn) ( *Buffers) (int64, error) {
if !.ok() {
return 0, syscall.EINVAL
}
, := .fd.writeBuffers()
if != nil {
return , &OpError{Op: "writev", Net: .fd.net, Source: .fd.laddr, Addr: .fd.raddr, Err: }
}
return , nil
}
func ( *netFD) ( *Buffers) ( int64, error) {
, = .pfd.Writev((*[][]byte)())
runtime.KeepAlive()
return , wrapSyscallError("writev", )
}