Added server's base code and client's send & recv methods.