Lines Matching refs:Socklen_t
20 …sockaddr() (ptr *RawSockaddrAny, len Socklen_t, err error) // lowercase; only we can define Sockad…
36 func (sa *SockaddrInet4) sockaddr() (*RawSockaddrAny, Socklen_t, error) {
58 func (sa *SockaddrInet6) sockaddr() (*RawSockaddrAny, Socklen_t, error) {
79 func (sa *SockaddrUnix) sockaddr() (*RawSockaddrAny, Socklen_t, error) {
91 sl := Socklen_t(2)
93 sl += Socklen_t(n) + 1
98 if sl-2 > Socklen_t(len(sa.raw.Path)) {
147 var len Socklen_t = SizeofSockaddrAny
165 var len Socklen_t = SizeofSockaddrAny
177 var len Socklen_t = SizeofSockaddrAny
220 vallen := Socklen_t(1)
227 vallen := Socklen_t(4)
233 vallen := Socklen_t(4)
240 vallen := Socklen_t(SizeofIPMreq)
247 vallen := Socklen_t(SizeofIPMreqn)
254 vallen := Socklen_t(SizeofIPv6Mreq)
261 vallen := Socklen_t(SizeofICMPv6Filter)
284 return setsockopt(fd, level, opt, unsafe.Pointer(tv), Socklen_t(unsafe.Sizeof(*tv)))
297 return setsockopt(fd, level, opt, unsafe.Pointer(l), Socklen_t(unsafe.Sizeof(*l)))
301 return setsockopt(fd, level, opt, unsafe.Pointer(mreq), Socklen_t(unsafe.Sizeof(*mreq)))
305 return setsockopt(fd, level, opt, unsafe.Pointer(mreq), Socklen_t(unsafe.Sizeof(*mreq)))
309 return setsockopt(fd, level, opt, unsafe.Pointer(mreq), Socklen_t(unsafe.Sizeof(*mreq)))
317 return setsockopt(fd, level, opt, p, Socklen_t(len(s)))
325 var len Socklen_t = SizeofSockaddrAny
389 var salen Socklen_t