Skip to content

Initial design and implementation of C++ API#77

Open
lsmon wants to merge 10 commits into
mainfrom
cpp-api
Open

Initial design and implementation of C++ API#77
lsmon wants to merge 10 commits into
mainfrom
cpp-api

Conversation

@lsmon

@lsmon lsmon commented Jul 5, 2026

Copy link
Copy Markdown
Member

Please review my interpretation and implementation of the cpp api code.

hokeun and others added 7 commits June 21, 2026 22:15
- Added a high-level C++ wrapper for POSIX socket operations in `sockets.hpp` and `sockets.cpp`.
- Introduced `ClientSocket`, `ServerSocket`, and `EndPointSocket` classes for client-side, server-side, and endpoint socket functionalities.
- Implemented `SSL_Socket` class for secure socket operations using OpenSSL, including methods for initializing SSL contexts, connecting, and accepting secure connections.
- Created unit tests for basic socket lifecycle, client and server socket creation, and socket info copying in `socket_test.cpp`.
- Ensured thread safety and proper resource management using RAII principles.
… memory management; add integration tests for SST C++ API lifecycle and error handling
… build/test instructions and architecture overview
@hokeun hokeun self-requested a review July 5, 2026 04:39
@hokeun hokeun changed the title Cpp api Initial design and implementation of C++ API Jul 5, 2026
hokeun and others added 3 commits July 5, 2026 13:41
- Centralize OpenSSL initialization to address security issues.
- Validate socket before closing to prevent errors.
- Improve string handling in configuration parsing with snprintf.
- Refactor socket lifecycle management in authentication handshake.
- Implement bounds checking for received messages.
- Ensure graceful SSL shutdown in SSL_Socket destructor.
- Optimize thread-safe initialization of SSL contexts.
@sonarqubecloud

sonarqubecloud Bot commented Jul 5, 2026

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
D Security Rating on New Code (required ≥ A)
D Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

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.

2 participants