socket output and input stream completed