Working with socket I/O.