Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #100

Merged
merged 40 commits into from
Sep 15, 2024
Merged

Dev #100

merged 40 commits into from
Sep 15, 2024

Conversation

MortezaBashsiz
Copy link
Owner

Changelog

  1. cmake integration
  2. clang format
  3. uuid for each connection
  4. use mutex as much as possible
  5. connection timeout implementation
  6. change read method from socket to increase performance
  7. socket shutdown implementation
  8. automate debian package build

SirzechsLucifer666 and others added 30 commits August 28, 2024 17:32
Fix #81 & #82 - Integrate CMake & reorganize file structure & Update Build guide
Add Clang format & Clang tidy files
Check writeBuffer size before socket write in tcpClient
Objective:
    Automatically closing a connection, which becomes stalled for some reason.

Implementation Details:
    Before every read/write operation, a timer (`deadline_timer`) gets
    started/reseted, and after each successful I/O; the timer gets cancelled.
    When timer's handlers called ,in case of an expiration, it closes associated
    socket with the connection; by doing so, any blocking I/O on respected socket
    will be interrupted.

    This patch only addresses *TCPConnection* and *TCPClient* classes' read and write
    methods. The underlying implementation is identical for both classes.

Fixes #79
Details:
    - Decreasing the timeout value range to 2 bytes.
    - Using seconds instead of miliseconds for timeout indication.
    - Removing unused variable and a couple of variable renaming.
Timeout implementation for connections.
use transfer_at_least(1) instead of transfer_exactly(1), shutdown soc…
add socketShutdown function to make it simple and exception handling
@MortezaBashsiz MortezaBashsiz merged commit a355ea4 into main Sep 15, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants