15 Commits

Author SHA1 Message Date
Fred Nicolson
322f53841b Removed SocketReactor. Switched SocketSelector implementation to EPOLL
Should result in better performance, although a Windows implementation is not yet ready.
2018-10-01 15:36:13 +01:00
Unknown
206e421728 Actually pushed across examples 2018-03-03 16:08:42 +00:00
Unknown
13f709aebb Added examples for a simple WebSocket client and Server.
Removed automatic ping pong response, and disconnection from fr::WebSocket, as it should be handled by the library user, really.

Updated ReadMe.
2018-03-03 16:02:17 +00:00
Fred Nicolson
ff25d11089 Removed socket mutexes. Added more tests. Improved examples.
Socket mutexes are no longer really required, and so have been removed.

Added more tests for network encoding functions, and the URL parser.

The URL parser now returns a path preceeded with a '/' instead of cutting it out. Added get_uri() to URL, for getting the whole URI, so users don't have to concat it themselves from the more specialised functions.

Fixed default socket connect timeout checking for the wrong value.

Fixed request_type_strings not containing all of the possible request types.

Fixed README using old socket close syntax.

Cleaned up the examples a bit.
2018-02-01 11:56:34 +00:00
Fred Nicolson
321f7304a3 Fixed broken example 2018-01-10 17:23:10 +00:00
Fred Nicolson
84382cad0b Made some changes recommended by Clang-Tidy. 2017-07-20 15:02:43 +01:00
Fred Nicolson
e748fde121 API changes, and lots of fixes.
fr::HttpSocket has been removed.

fr::Sendable has been added. Classes can inherit this if they want to be sendable through sockets. Both fr::Http (which is inherited by fr::HttpRequest and fr::HttpResponse), and fr::Packet inherit this, to allow them to be sent through fr::Socket::send()/fr::Socket::receive().

Fixed broken fr::SocketSelector and fr::SocketReactor, as they no longer accepted fr::Listener's due to fr::Listener no longer inheriting fr::Socket.
2017-07-18 17:34:49 +01:00
Unknown
1eec21c679 Fixed Cmake error 2017-05-29 19:04:44 +01:00
Unknown
1b64bbbb67 Cleaned up mess 2017-05-29 18:59:33 +01:00
Unknown
bf8a6345d7 Merge remote-tracking branch 'origin/master' 2017-05-29 18:57:47 +01:00
Unknown
c4fea83a2c Added support for examples to the build system. Cleaned up examples.
Examples can now be automatically built with the project, if enabled. And I've cleaned up MiaoDX's examples to be more compliant with frnetlib's coding style.
2017-05-29 18:57:39 +01:00
miaodx
7dccf41b76 specify the ip and port. 2017-05-29 23:49:03 +08:00
miaodx
8a380c6620 add FRNETLIB_LIB for apple and linux. 2017-05-29 23:48:31 +08:00
miaodx
bb9eaa3981 tcpsocket client and server example. 2017-05-29 23:19:27 +08:00
miaodx
1de53ef6e8 add some examples. 2017-05-29 09:42:14 +08:00