Sockets and I/O

Working with sockets from the engine side, above the raw RPC calls.