// fields used only by net package
buf syscall.WSABuf
msg windows.WSAMsg
- sa syscall.Sockaddr
rsa *syscall.RawSockaddrAny
rsan int32
bufs []syscall.WSABuf
// handle zero-byte payload
o := &fd.wop
o.InitBuf(buf)
- o.sa = sa
n, err := fd.execIO(o, func(o *operation) (qty uint32, err error) {
- err = syscall.WSASendto(fd.Sysfd, &o.buf, 1, &qty, 0, o.sa, &o.o, nil)
+ err = syscall.WSASendto(fd.Sysfd, &o.buf, 1, &qty, 0, sa, &o.o, nil)
return qty, err
})
return n, err
}
o := &fd.wop
o.InitBuf(b)
- o.sa = sa
n, err := fd.execIO(o, func(o *operation) (qty uint32, err error) {
- err = syscall.WSASendto(fd.Sysfd, &o.buf, 1, &qty, 0, o.sa, &o.o, nil)
+ err = syscall.WSASendto(fd.Sysfd, &o.buf, 1, &qty, 0, sa, &o.o, nil)
return qty, err
})
ntotal += int(n)
// than in the net package so that it can use fd.wop.
func (fd *FD) ConnectEx(ra syscall.Sockaddr) error {
o := &fd.wop
- o.sa = ra
_, err := fd.execIO(o, func(o *operation) (uint32, error) {
- return 0, ConnectExFunc(fd.Sysfd, o.sa, nil, 0, nil, &o.o)
+ return 0, ConnectExFunc(fd.Sysfd, ra, nil, 0, nil, &o.o)
})
return err
}