How do networked games work? Does it just pair you against the next person who queues up?
Also if you don't mind, what are the technical details behind this? Does it use a matchmaking server or do it directly?
It just pairs you against the next person who queues up.
There's a matchmaking server. The first person who joins is put into the queue, and then when the next player joins, both players are removed from the queue and put into the game.
The server also transmits moves between the players during the game. Nothing is done peer to peer.