CCSocket changes, implementation