elephant.io socket client writen in c