开发者

Objective-C datatypes and HTTP stream header contents?

I am trying to read out some values from response headers from a Shoutcast stream.

In the following code, what datatypes should my variables be when reading the values?

*datatype* header = CFReadStreamCopyProperty(str开发者_如何学Ceam, kCFStreamPropertyHTTPResponseHeader);   

*datatype* varname = CFHTTPMessageCopyAllHeaderFields(header);

EDIT:

Using Jacob Relkin's answer, I get the following warning on the first line

initialization discards qualifiers from pointer target type

and the following warnings from the second line

passing argument 1 of 'CFHTTPMessageCopyAllHeaderFields' from incompatible pointer type


CFHTTPMessageRef and CFDictionary * (which is toll-free bridged to NSDictionary)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜