Close signals the session handler to return and closes the underlying channel.
()
| 89 | |
| 90 | // Close signals the session handler to return and closes the underlying channel. |
| 91 | func (s *Session) Close() error { |
| 92 | s.doneOnce.Do(func() { close(s.done) }) |
| 93 | return nil |
| 94 | } |
| 95 | |
| 96 | // RemoteAddr returns the net.Addr of the client side of the connection. |
| 97 | func (s *Session) RemoteAddr() net.Addr { |