LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-16-2005, 02:23 PM   #1
Quest101
LQ Newbie
 
Registered: Nov 2004
Posts: 27

Rep: Reputation: 15
Network programming Weird ouptut


Hi ,
I am doing a bit of network programming and I am currently using MSVC. There is an object of type u_int8_t called datacopy. Now using the debugger i tried to get the contents of datacopy , however the output looked like :

datacopy 0x00469418 "
ð_º
ð_º
ð_º
ð_º
ð_ºîþ««««««««îþ"

Now data buffer is suppose to have the contents of a received packet.

If anyone could interpret this output , i would greatly appreciate it

Thanx in advance
 
Old 02-16-2005, 03:39 PM   #2
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 47
Looks like binary data to me (as it should be). Are you doing the appropriate byte swapping in there somewhere? ntohl() ntohs() htonl() and htons() are what you would use on a *NIX machine. Not sure on win32, but they should be the same (these are POSIX functions)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Weird network problem rrwhite Ubuntu 2 07-07-2005 04:58 AM
weird network problem zaichik Linux - Newbie 2 07-03-2004 07:17 AM
Weird Request - console graphics programming dtheorem Linux - Software 4 10-06-2003 07:25 PM
weird network problem guanyu Linux - Networking 5 06-25-2002 06:30 PM
weird network problems tobymiller Linux - Networking 0 04-12-2002 10:27 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration