Most code written. Recently switched to select with both read and write descriptors. Doesn't seem to work. Might need to revert to just read descriptors.