defining eof type for socket stream buffers
overriding overflow method for socket stream buffers