D
DEN
Unregistered / Unconfirmed
GUEST, unregistred user!
标题可能没有描述清楚,就是客户端向服务器发送http请求后,服务器不断向客户发送数据流,在数据流中,每隔一段都会有特殊标记出现,问题是我如何以最优的性能(主要是速度)取出这些特殊标记间的内容.数据流内容大致如下:
HTTP/1.0 200 OK
Content-type: multipart/x-mixed-replace; boundary=theboundary
--theboundary
boundaryData..............
--theboundary
boundaryData..................
--theboundary
boundaryData.....................
我如何以最优的性能快速取出上面"--theboundary"间的"boundaryData....................."的流内容?
HTTP/1.0 200 OK
Content-type: multipart/x-mixed-replace; boundary=theboundary
--theboundary
boundaryData..............
--theboundary
boundaryData..................
--theboundary
boundaryData.....................
我如何以最优的性能快速取出上面"--theboundary"间的"boundaryData....................."的流内容?