could socket be used to write and read at the same time?