Peter Thorson
a63f7d8b7b
switch all exceptions to be of type websocketpp::exception
2014-03-06 19:35:25 -06:00
Peter Thorson
9d8eced9a1
Refactored server_endpoint to allow end users to access start_accept error states references #335
...
also more documentation
2014-03-05 08:06:14 -06:00
Aydan Yumerefendi
c3dfb25181
Merge remote-tracking branch 'upstream/master'
...
Conflicts:
websocketpp/roles/server_endpoint.hpp
2014-03-04 21:19:24 -05:00
Aydan Yumerefendi
5a5d8321bd
Require a valid con before calling terminate
...
If get_connection returns null, e.g., if during stop the tls_init
handler is removed from the server, con->terminate will cause a crash.
2014-03-04 21:02:42 -05:00
Peter Thorson
b805689f9c
whitespace and don't accept if we know the transport isn't listening references #334
2014-03-04 06:45:00 -06:00
Aydan Yumerefendi
3ca53d0064
Avoid leak when stopping server
...
If accept fails, e.g., because the server is no longer listening the
connection object is not terminated and it results in a memory leak:
connection -> handler -> connection.
2014-03-03 21:51:56 -05:00
Peter Thorson
d425caea80
Fix misclassified error log entry
2014-02-18 07:58:49 -06:00
Peter Thorson
09940a5c0b
Corrects more obscure shadowed variables cases
2014-02-02 13:12:52 -06:00
Peter Thorson
bb431ee0d2
Fix a crash following use of the stop_listening function.
2014-01-26 20:53:17 -06:00
Peter Thorson
b934e71ace
adjust transport async_accept and async_connect to use connection_ptr instead of connection_hdl
...
prevents a newly created connection_ptr from being destroyed
immediately after accepting or connecting.
2013-10-06 10:51:41 -05:00
Peter Thorson
c017331959
remove trailing whitespace
2013-07-21 07:49:15 -05:00
Peter Thorson
b866e4e0ca
Refactors URI to be exception and regex free
2013-07-09 16:50:47 -05:00
Peter Thorson
55fa61feb1
Merge remote-tracking branch 'origin/0.3.x-cmake' into experimental
2013-06-08 09:29:53 -05:00
Peter Thorson
ea36bf1cf7
removes unused files
2013-05-30 13:32:33 -05:00
Jeff Mitchell
0a7aaa2632
Overload get_connection to allow passing in an already-constructed uri_ptr. This avoid the need for using the regex, which GCC does not implement yet.
2013-05-28 13:15:01 -04:00
Peter Thorson
8e40c53f97
adds new async terminate interface which significantly improves error handling
2013-05-07 09:38:26 -05:00
Peter Thorson
d908c1afd2
update copyright dates and fix whitespace that doesn't match projec style
2013-05-05 11:23:31 -05:00
Peter Thorson
e7e0c05e9a
async_connect requires uri as a parameter now
2013-03-31 15:11:05 -05:00
Peter Thorson
3eef03d31e
disables termination of connections that return bad handles
2013-03-30 07:56:50 -05:00
Peter Thorson
924bb1a050
adds client endpoint connection methods
2013-03-30 07:55:05 -05:00
Peter Thorson
1ddd43ccb0
client get_connection now sets URI
2013-03-30 07:05:31 -05:00
Peter Thorson
afd5646ca5
adds more client functionality and associated tests
2013-03-28 22:58:54 -05:00
Peter Thorson
4f00240a3b
adds preliminary foundations for client support
2013-03-28 22:43:55 -05:00
Peter Thorson
ef857ea831
splits basic logger from log constants
2013-03-28 22:42:51 -05:00
Peter Thorson
dfd61f8504
updates copyright dates
2013-03-28 22:41:23 -05:00
Peter Thorson
780847bf43
cleans up handle_accept error paths
2013-02-01 09:11:43 -06:00
Peter Thorson
375108aabf
Switches cout based logging to logging policy
2013-01-27 08:20:08 -06:00
Peter Thorson
5d7e32fa10
rearranges some stuff
2013-01-09 08:05:43 -06:00
Peter Thorson
a3acc4a1cf
removes all old style handler code
2013-01-08 06:43:47 -06:00
Peter Thorson
31cc4af4f4
cleanup
2013-01-08 06:33:06 -06:00
Peter Thorson
e7b87e5d54
Updates on_ping, on_pong, and on_pong_timeout handlers to new interface
2013-01-07 16:53:14 -06:00
Peter Thorson
e339e0f5c6
Updates server role with new component style
2013-01-07 12:21:28 -06:00
Peter Thorson
5949c58d2e
updates transport accept loop to use connection_hdl and not be a template function
2013-01-06 09:19:08 -06:00
Peter Thorson
f10f8a4ce0
Initial commit from private 0.3 repository
2013-01-06 06:09:15 -06:00