Add scokpeername function and repair server.c's bug