Hi all,<div><br></div><div>I'm trying to handle disconnections transparently on SocketStream. I thought something like this:</div><div><br></div><div>void send(ubyte[] buffer) in { assert(buffer.length > 0); }</div>

<div>body {</div><div>    if (!stream.isAlive) connect();</div><div>    auto sent = stream.write(buffer);</div><div>    if (sent == 0)</div><div>        throw new Exception("Error while writing");</div><div>}<br clear="all">

<div><br></div><div>But that's impossible because isAlive doesn't exists for SocketStream and I can't get the underlying socket object. Is that something missing or should I handle it differently?</div><div><br>

</div>Pedro Lacerda<br><br>
</div>