gbuf: cport in buffer stream logic