// Accept a new connection and complete handshake.
// TODO: do handshake later, this blocks future accepts.
Accept a new connection and complete handshake.
TODO: do handshake later, this blocks future accepts.
// Accept a new connection and complete handshake . // TODO : do handshake later this blocks future accepts .
func (self *Listener) Accept() (net.Conn, error) {
	c, err := self.Listener.Accept()
	if err != nil {
		return nil, err
	}
	myconnection, err := NewServerConn(self.Context, c)
	return myconnection, nil
}
func ( self * Listener ) Accept ( ) ( net . Conn , error ) { c , err := self . Listener . Accept ( ) if err != nil { return nil , err } myconnection , err := NewServerConn ( self . Context , c ) return myconnection , nil }
Accept a new connection and complete handshake.
Accept a new connection and complete handshake .
//ssl_err := myconnection.Handshake()