Implemented get and unget of InputSocketStream.