some code about c, opengl and network