correct include
socket accept mistery finally solved: client address lenght had to be initialized
socket close: no need to use shutdown and close together, close is the recommended
merging
TcpConnection checks state at the beginning of each function