![]() ~Sockets~ |
New in 2.3: Xml and a new OnDisconnect
v2.3A new OnDisconnect(flags, code) callback was added alongside the "old" callback without parameters. The "flags" parameter indicates with a bitmap when the disconnect was detected. The TCP_DISCONNECT_WRITE bit is true if the disconnect was detected during a write (send) call, and false if it was disconnected during a read (recv) call. The TCP_DISCONNECT_ERROR is true if the read/write call returned error (-1 normally). It's false if the call returned 0 - zero bytes read, normal indication of a disconnect.. The TCP_DISCONNECT_SSL bit is true if the connection was an ssl connection, and the error code supplied comes from the openssl library. If the TCP_DISCONNECT_SSL bit is false, the error code is "errno" from the read/write call. There are three new xml classes in this release. XmlDocument, XmlNode, and XmlException. To enable the compilation of these classes the symbol ENABLE_XML must be defined in the sockets-config.h file. By default these classes are turned off, to avoid the additional dependency to libxml2. XmlDocument XmlNode XmlException
|