(p []byte)
| 12 | } |
| 13 | |
| 14 | func (c *bufferedConn) Read(p []byte) (int, error) { |
| 15 | if c == nil { |
| 16 | return 0, net.ErrClosed |
| 17 | } |
| 18 | if c.reader == nil { |
| 19 | return c.Conn.Read(p) |
| 20 | } |
| 21 | return c.reader.Read(p) |
| 22 | } |
| 23 | |
| 24 | func (c *bufferedConn) ConnectionState() tls.ConnectionState { |
| 25 | if c == nil || c.Conn == nil { |
no outgoing calls