Started on basic socket initialization and handling.