Netry is a very simple high level networking library implementation of The Single UNIX Specification, Version 2.
- Language: C++ 11 Standard
- IDE: CLion 2017.2.3
- Build: CMake 3.9
- Server instance to wait for connections in a specific port.
- Socket instance to connect in a specific ip address and port.
- Data transfer between two endpoints using a connected socket for the types:
- Byte
- Integer
- String
Allow listening in more than one port with the same ip address.
The sockaddr_in C struct can be initiated only once with one address, so when a new ServerSocket is instantiated, it throws an error.
Solutions:
- Keep a reference to every struct address sockaddr_in and, if it alreadt exists, use it to listen in a new port.
- Handle it in C level