mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
add Addr() string to net.Listener interface.
use it to avoid use of fixed ports in tests. convert google/net/rpc to gotest R=r DELTA=523 (275 added, 229 deleted, 19 changed) OCL=30458 CL=30460
This commit is contained in:
parent
f39fcd7e42
commit
5d2ee9d90a
11 changed files with 136 additions and 26 deletions
|
|
@ -36,6 +36,8 @@ import "syscall"
|
|||
//sys setgroups(n int, list *_Gid_t) (errno int)
|
||||
//sys setsockopt(s int, level int, name int, val uintptr, vallen int) (errno int)
|
||||
//sys socket(domain int, typ int, proto int) (fd int, errno int)
|
||||
//sys getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (errno int)
|
||||
//sys getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (errno int)
|
||||
|
||||
func Getpagesize() int {
|
||||
return 4096
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue