Lines Matching defs:netFD
16 type netFD struct { struct
17 pfd poll.FD
20 net string
21 n string
22 dir string
23 listen, ctl, data *os.File
24 laddr, raddr Addr
25 isStream bool
44 func (fd *netFD) init() error {
49 func (fd *netFD) name() string {
60 func (fd *netFD) ok() bool { return fd != nil && fd.ctl != nil }
62 func (fd *netFD) destroy() {
82 func (fd *netFD) Read(b []byte) (n int, err error) {
94 func (fd *netFD) Write(b []byte) (n int, err error) {
101 func (fd *netFD) closeRead() error {
108 func (fd *netFD) closeWrite() error {
115 func (fd *netFD) Close() error {
147 func (fd *netFD) dup() (*os.File, error) {
161 func (fd *netFD) file(f *os.File, s string) (*os.File, error) {
169 func setReadBuffer(fd *netFD, bytes int) error {
173 func setWriteBuffer(fd *netFD, bytes int) error {
177 func (fd *netFD) SetDeadline(t time.Time) error {
181 func (fd *netFD) SetReadDeadline(t time.Time) error {
185 func (fd *netFD) SetWriteDeadline(t time.Time) error {