Compiler issue---Forgot to include <assert.h>
Added wrapper for getsockname() as sock:addr()