Raw socket
I have completed the work of RAW Socket by referring ACE_ICMP_Socket & ACE_Sock_Dgram classes, these are provided by ACE long time ago.
I have tested the API of RAW Socket on Linux platforms, such as Ubuntu 20.04 and CentOS 7. On windows platform , there exist some surprise maybe for OS limits, RAW_Socket_Test case can not pass through.
For considering the fact that applications using RAW Socket almost run on Unix* or Linux* platforms, this failure is trivial!
So I decide to launch the PR :)
This PR has been launched some months ago, but it is based on master branch . This time I launch a new PR based on a special branch :)
Summary by CodeRabbit
-
New Features
- Added a new
ACE_RAW_SOCKETclass for low-level network communication - Supports raw socket operations with both IPv4 and IPv6 protocols
- Provides methods for sending and receiving network data with advanced options
- Added a new
-
Documentation
- Added comprehensive test suite for raw socket functionality
-
Tests
- Introduced new test cases for raw socket operations
- Added platform-specific (Linux) testing for raw socket implementation
Because I copy some source codes from SOCK_Dgram.cpp,
so Codacy Static Code Analysis will produce the same issues for SOCK_Dgram.cpp if using the cppcheck tool to check it.
By the way, the Codacy team tells me to use cppcheck tool
Can these issues be ignored ?