(conn Conn)
| 400 | } |
| 401 | |
| 402 | func (c *connection) initNetFD(conn Conn) { |
| 403 | if nfd, ok := conn.(*netFD); ok { |
| 404 | c.netFD = *nfd |
| 405 | return |
| 406 | } |
| 407 | c.netFD = netFD{ |
| 408 | fd: conn.Fd(), |
| 409 | localAddr: conn.LocalAddr(), |
| 410 | remoteAddr: conn.RemoteAddr(), |
| 411 | } |
| 412 | } |
| 413 | |
| 414 | func (c *connection) initFDOperator() { |
| 415 | poll := pollmanager.Pick() |
no test coverage detected