Converted network to use void* for sock to support multiple connections