Lines Matching defs:netFD
17 type netFD struct { struct
18 pfd poll.FD
21 family int
22 sotype int
23 isConnected bool // handshake completed or use of association with peer
24 net string
25 laddr Addr
26 raddr Addr
29 func (fd *netFD) setAddr(laddr, raddr Addr) {
35 func (fd *netFD) Close() error {
40 func (fd *netFD) shutdown(how int) error {
46 func (fd *netFD) closeRead() error {
50 func (fd *netFD) closeWrite() error {
54 func (fd *netFD) Read(p []byte) (n int, err error) {
60 func (fd *netFD) readFrom(p []byte) (n int, sa syscall.Sockaddr, err error) {
65 func (fd *netFD) readFromInet4(p []byte, from *syscall.SockaddrInet4) (n int, err error) {
71 func (fd *netFD) readFromInet6(p []byte, from *syscall.SockaddrInet6) (n int, err error) {
77 … readMsg(p []byte, oob []byte, flags int) (n, oobn, retflags int, sa syscall.Sockaddr, err error) {
83 …t4(p []byte, oob []byte, flags int, sa *syscall.SockaddrInet4) (n, oobn, retflags int, err error) {
89 …t6(p []byte, oob []byte, flags int, sa *syscall.SockaddrInet6) (n, oobn, retflags int, err error) {
95 func (fd *netFD) Write(p []byte) (nn int, err error) {
101 func (fd *netFD) writeTo(p []byte, sa syscall.Sockaddr) (n int, err error) {
107 func (fd *netFD) writeToInet4(p []byte, sa *syscall.SockaddrInet4) (n int, err error) {
113 func (fd *netFD) writeToInet6(p []byte, sa *syscall.SockaddrInet6) (n int, err error) {
119 func (fd *netFD) writeMsg(p []byte, oob []byte, sa syscall.Sockaddr) (n int, oobn int, err error) {
125 …etFD) writeMsgInet4(p []byte, oob []byte, sa *syscall.SockaddrInet4) (n int, oobn int, err error) {
131 …etFD) writeMsgInet6(p []byte, oob []byte, sa *syscall.SockaddrInet6) (n int, oobn int, err error) {
137 func (fd *netFD) SetDeadline(t time.Time) error {
141 func (fd *netFD) SetReadDeadline(t time.Time) error {
145 func (fd *netFD) SetWriteDeadline(t time.Time) error {