Socket I/O basically working