Implements ACK socket connection
Fix command protocol