testing changes in Connection.java
adding close function and implementing recvFromServer