Emiel Bruijntjes
|
bca39d8f29
|
simplified code, split up long methods in separate methods
|
2020-11-16 18:22:00 +01:00 |
aljar
|
f9d85f5d01
|
Use address to pass the option and add some extra options for sorting ips.
|
2020-11-16 16:30:29 +01:00 |
aljar
|
fe1538e8ae
|
Set option via address.
|
2020-11-13 18:05:07 +01:00 |
aljar
|
4570496547
|
Add option to select an IP randomly instead of using the order provided by getaddrinfo, which is proximity based.
|
2020-11-13 17:10:30 +01:00 |
Michael van der Werve
|
103fa130f7
|
{auto} implement timeout on initial connection instead of being subjected to kernel
|
2020-09-29 13:51:54 +02:00 |
Michael van der Werve
|
2496dbbd4e
|
make sure onLost and onDetached are always called
|
2020-09-28 16:37:12 +02:00 |
Michael van der Werve
|
1c08399ab0
|
valid file descriptors that can be closed are >= 0
|
2020-05-08 13:30:08 +02:00 |
Michael van der Werve
|
ab0a292a0e
|
file descriptor should not be monitored any more when the tcp connection is destructed.
|
2020-05-08 13:20:10 +02:00 |
Emiel Bruijntjes
|
e7f76bc75d
|
the TcpConnection class no longer calls back to userspace / to the user-supplied handler if user-space explicitly destructs the object
|
2020-04-30 21:41:41 +02:00 |
Emiel Bruijntjes
|
45ca61cc43
|
added TcpConnection::closed()
|
2018-11-14 14:15:52 +01:00 |
Emiel Bruijntjes
|
a80847dc5e
|
fixed a couple of todos, make sure that onError() is always called
|
2018-11-12 12:12:04 +01:00 |
Emiel Bruijntjes
|
6f81b0a097
|
when tcp connection is lost, the pending operations are now reported with an error
|
2018-11-11 23:46:58 +01:00 |
Emiel Bruijntjes
|
e83a07f871
|
renamed onClosed to onLost to prevent confusion between TcpHandler::onClosed() and ConnectionHandler::onClosed()
|
2018-11-08 09:58:36 +01:00 |
Emiel Bruijntjes
|
da6744bf4d
|
renamed ConnectionHandler::onConnectedO() to ConnectionHandler::onReady()
|
2018-11-08 08:34:58 +01:00 |
Emiel Bruijntjes
|
06dc23190d
|
added ConnectionHandler::onProperties and TcpConnectionHandler::onProperties
|
2018-11-07 23:22:25 +01:00 |
Emiel Bruijntjes
|
428219ad83
|
simplified and improved the close procedure
|
2018-11-07 15:04:08 +01:00 |
Emiel Bruijntjes
|
64c876e65a
|
removed support for TcpConnection::flush() and removed internal TcpShutdown state
|
2018-11-06 18:11:27 +01:00 |
Emiel Bruijntjes
|
9330231a69
|
fixed assigning the new state
|
2018-11-05 17:11:21 +01:00 |
Emiel Bruijntjes
|
54049f9e8e
|
improved the tcp handler, added more methods to monitor whether a connection is connected, logged on and in an error state
|
2018-11-05 16:49:55 +01:00 |
Emiel Bruijntjes
|
359eec189f
|
work in progress, simplified the tcp and ssl states
|
2018-11-05 16:18:20 +01:00 |
Emiel Bruijntjes
|
e617161c8c
|
the state::abort() method is no longer needed
|
2018-11-05 15:49:22 +01:00 |
Emiel Bruijntjes
|
b81bc340b5
|
work in progress on refactored tcp handling, to solve various issues, like the one that lost connections do not trigger operations to fail
|
2018-11-04 23:34:31 +01:00 |
Emiel Bruijntjes
|
62a4262a58
|
the TcpConnection::close() method now supports an "immediate" parameter to skip the official amqp handshake for closing down
|
2018-10-28 18:13:13 +01:00 |
Emiel Bruijntjes
|
8546f52cd0
|
added onAttached() and onDetached() to the TcpHandler interface
|
2018-10-28 10:22:01 +01:00 |
Emiel Bruijntjes
|
2430da76c3
|
refactored code
|
2018-06-10 20:46:11 +02:00 |
xqing2003
|
e40006058e
|
fix memory leak
fix memory leak when channel error
|
2018-06-06 22:11:55 +08:00 |
xqing2003
|
7737917886
|
solve memory leak
|
2018-06-01 23:30:30 +08:00 |
Emiel Bruijntjes
|
b26058f3e2
|
renamed bytesQueued() to queued()
|
2018-04-01 22:34:15 +02:00 |
Mike Playle
|
8800d2917e
|
Add method to return the amount of queued outgoing data
|
2018-04-01 10:54:05 +01:00 |
Emiel Bruijntjes
|
f1c32242f7
|
Merge branch 'master' of github.com:CopernicaMarketingSoftware/AMQP-CPP
|
2018-03-10 14:56:18 +01:00 |
Emiel Bruijntjes
|
d2b2d5af14
|
shared-ptr has been turned into a unique-ptr for the tcp-state
|
2018-03-10 14:55:57 +01:00 |
Emiel Bruijntjes
|
cea5a54487
|
fix bug: error about missing openssl was also reported when not even opening a secure connection
|
2018-03-08 10:44:42 +01:00 |
Emiel Bruijntjes
|
f23bcf19f1
|
improved docblocks in tcpstate.h header file, when an error or closed is reported to user space, the _handler variable is now reset to prevent that it will be used to report more than once (we still need to check if this does not trigger other errors), and the state object is no longer destructed after a reportClosed() call, so that it can clean up nicely (which we need to the tls shutdown anyway)
|
2018-03-08 10:02:42 +01:00 |
Tamas Elekes
|
342268e50a
|
support for amqps:// addresses in the AMQP::Address class (although it does not yet make a real secure connection)
|
2018-03-02 13:53:00 +01:00 |
Aart Stuurman
|
27f765b5f7
|
linux tcp is now opt-out instead of opt-in(to keep compatibility with the original lib).
|
2018-01-23 19:15:10 +01:00 |