updated socket.c and EBUtest