于 2010年10月24日 15:30, Guy Harris 写道:
On Oct 23, 2010, at 9:39 PM, 刘昆 wrote:
   
I want to print the string "tvb->real_data "
     
It's not a string.  It's a sequence of octets, which might or might not encode printable characters in some particular character encoding (ASCII, UTF-8, UTF-16, ISO 8859-1, ISO 8859-2, EUC-CN, Shift-JIS, etc.), and might or might not encode them in the form of a null-terminated string.
What is it that you are trying to do here?
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list<wireshark-dev@xxxxxxxxxxxxx>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
              mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe
tvb->real_data is a pointer.And I guess the contents of this pointer 
should be the  payload of the packet just as
"const guint8 *) 0x8b53042 "GET http://www.baidu.com/ HTTP/1.1\r\nHost: 
www.baidu.com\r\nUser-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; 
rv:1.9.2.11) Gecko/20101013 Linux Mint/9 (Isadora) 
Firefox/3.6.11\r\nAccept: text/html,applic"...
which I use gdb to print tvb->real_data
I want the http payload  to do some flitering about the text or string 
.But first I want to print the string.
Do you mean tvb->real_data is do not save the payload ? But  I can see 
the result by using gdb print.So   I want to know what I should do to 
print "tvb->real_data"