add lsocket.c for test