for clear the uv_write_t (that has the tcp socket handle into it i need to
call
on_write_end(uv_write_t *req, int status) {
...
uv_close((uv_handle_t*)req, TCPUVServer::on_close);
uv_close((uv_handle_t*)handle->handle, TCPUVServer::on_close);
...
}
void TCPUVServer::on_close(uv_handle_t* handle) {
TCPUVServerLDBG << "on_close ";
free(handle);
}
?
Il giorno venerdì 4 luglio 2014 16:37:49 UTC+2, Iñaki Baz Castillo ha
scritto:
>
> 2014-07-04 16:34 GMT+02:00 Claudio Bisegni <[email protected]
> <javascript:>>:
> > i can call free on on_connect(uv_connect_t *connection, int status) for
> the
> > connection parameter and call onlcose only for the real socket..
> > right?
>
> Mmmm, really not. Call uv_close(uv_handle) and free it on the on_close
> callback.
>
>
> --
> Iñaki Baz Castillo
> <[email protected] <javascript:>>
>
--
You received this message because you are subscribed to the Google Groups
"libuv" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/libuv.
For more options, visit https://groups.google.com/d/optout.