Puts socket num into array