Skip to content

A very simple C++ Library for TCP connections according to UNIX Specification v.2

License

Notifications You must be signed in to change notification settings

claudiomarpda/netry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

netry

Netry is a very simple high level networking library implementation of The Single UNIX Specification, Version 2.

Project

  • Language: C++ 11 Standard
  • IDE: CLion 2017.2.3
  • Build: CMake 3.9

Functionality

  • 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

Class Diagram

alt tag

Possible Improvements

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

Reference

http://pubs.opengroup.org/onlinepubs/7908799/xnsix.html

About

A very simple C++ Library for TCP connections according to UNIX Specification v.2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published