Changed the SCP system again, to use a thread for sending and receiving
Made IOBuf work