Socket: eliminated compiler warnings