WriteByte implements Connection.
(b byte)
| 315 | |
| 316 | // WriteByte implements Connection. |
| 317 | func (c *connection) WriteByte(b byte) (err error) { |
| 318 | if !c.IsActive() { |
| 319 | return Exception(ErrConnClosed, "when write byte") |
| 320 | } |
| 321 | return c.outputBuffer.WriteByte(b) |
| 322 | } |
| 323 | |
| 324 | // ------------------------------------------ implement net.Conn ------------------------------------------ |
| 325 |