Repaired sending messages for reconected users, refactorized code to methods, synchronized threads during acessing of shared tables with info of clients, repaired disconnecting of users. ERROR only messsages with size of 11 are working, bigger messages get allocation error, bug in struct online_user probbably.