Change sockets and asockets to a map, finish accept, connect, close