Things seem to be getting along better now with file transfers in both directions. There is a bug that the server will still try to receive a file even it doesn't exist client side. Trying to fix this has proven to be a pain. For some reason, the server reads a nonzero number from the socket even when I write a zero into the socket to indicate an aborted transfer.