Closed kudla closed 1 year ago
Hi,
Stream
implements net.Conn
(and its LocalAddr
and RemoteAddr
methods, of course). There is no way for a type to partially implement an interface. Those methods are implemented in addr.go
.
Ah, I see. Thank you 👍
Hi A
Session
instance returnsStream
one fromAccept
call as anet.Conn
hereYet
net.Conn
among the rest defineswhich
Stream
seems like doesn't implement.So I'm not really sure how this is compiled at all (while it indeed is)?
But my main concern here how can the accepted connection be passed to other consumers which are really supposed to have a pure
net.Conn
?Should I wrap with some stubs the connections myself? Or are there any intended solution for that?
Thx.