[noPoll] interactions between nopoll_conn and bsd sockets

Francis Brosnan Blázquez francis.brosnan at aspl.es
Mon Dec 18 15:33:49 CET 2017


El lun, 18-12-2017 a las 15:08 +0100, Morel Bérenger escribió:

> Hello.


Hello Morel.


> I have noticed in nopoll's documentation that it is possible provide a
> standard socket to nopoll (through nopoll_conn_new_with_socket), but
> there is no mention about who is then responsible of that's sockets
> lifetime and/or related data.



Ok, I'm going to update doc to reflect these points...


> Actually, I am doing several assumptions about that, and I would like to
> know if I am right:
> 
> * nopoll does not takes the socket's ownership (it won't close it),


noPoll takes full ownership. For noPoll, there's no difference between
a noPollConn created using regular API or offloaded and then used
nopoll_conn_new_with_socket.

However, noPoll will not close anything unless you do it (see calls to
nopoll_close_socket throughout the code).

For noPool, ownership here means no one is reading/writing to that
socket but noPoll.


> * the socket can be used in a pollfd struct for polling (I would guess
> it's the primary reason for that construction variant),


Yes.


> * reading or writing from/to the socket is unsafe and would make nopoll
> unreliable (sounds obvious and logic to me, but I'd like to confirm that).



Yes.


> So, could someone confirm or infirm those points? Thanks.
> 
> PS: when registering to the mailing list through the english version of
> the nopoll's website, the page I started on was in spanish, I'm not sure
> if this is intended. Fortunately, the page was not very different
> compared to the ML I have already used.



This seems to be confusing people. I've disabled "spanish" as available
option at the lists.aspl.es interface since "english" is the language
used for the mailing list.

Thanks for pointing this out. Best Regards.



-- 

Francis Brosnan Blázquez - ASPL 
91 134 14 22 - 91 134 14 45 

http://aspl.es 
http://asplhosting.com 
http://twitter.com/aspl_es 
http://twitter.com/asplhosting
https://www.linkedin.com/in/francis-brosnan-bl%C3%A1zquez-1353a218/

AVISO LEGAL 

Este mensaje se dirige exclusivamente a su destinatario. Los datos
incluidos en el presente correo son confidenciales y sometidos a
secreto profesional, se prohíbe divulgarlos, en virtud de las leyes
vigentes. Si usted no lo es y lo ha recibido por error o tiene
conocimiento del mismo por cualquier motivo, le rogamos que nos lo
comunique por este medio y proceda a destruirlo o borrarlo. 

En virtud de lo dispuesto en la Ley Orgánica 15/1999, de 13 de
diciembre, de Protección de Datos de Carácter Personal, le informamos
de que sus datos de carácter personal, recogidos de fuentes accesibles
al público o datos que usted nos ha facilitado previamente, proceden de
bases de datos propiedad de Advanced Software Production Line, S.L.
(ASPL). No obstante, usted puede ejercitar sus derechos de acceso,
rectificación, cancelación y oposición dispuestos en la mencionada Ley
Orgánica, notificándolo por escrito a: ASPL - Protección Datos,
C/Antonio Suárez 10 A-102, 28802, Alcalá de Henares (Madrid).
------------ pr�xima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <http://lists.aspl.es/pipermail/nopoll/attachments/20171218/be7ad12f/attachment.html>


More information about the noPoll mailing list