Hi All, Gambas3 has a lot of networking features, including acting like a (Web) Server. Only thing what is lacking is SSL support and IPv6 (separate topic :-)) ... I made some code for DomotiGa, to support SSL in the ServerSocket. I basically create a wrapper around the ServerSocket and Socket, called the 'CServerSocket.class' and 'CSocket.class'. They resemble almost the same features/parameters/events of the original classes ... Including native support for HTTP and WebSocket, so you don't have to decode/parse it yourself - you get directly the good data with a read event ... It has been tested on Ubuntu and Raspbian devices. Also I have done some benchmarking and didn't notice impact on performance.
Attached is the code, including an example to use the 'new' CServerSocket.class and CSocket.class. Just let me know if you like it or find bugs! Regards, Alex
SSL-Example.tar.gz
Description: GNU Zip compressed data
------------------------------------------------------------------------------
_______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user