RemoteAddr returns the remote network address.
()
| 547 | |
| 548 | // RemoteAddr returns the remote network address. |
| 549 | func (c *Conn) RemoteAddr() net.Addr { |
| 550 | return c.conn.RemoteAddr() |
| 551 | } |
| 552 | |
| 553 | // SetDeadline sets the read and write deadlines associated with the connection. |
| 554 | // It is equivalent to calling both SetReadDeadline and SetWriteDeadline. |