http://qs1969.pair.com?node_id=1044252


in reply to Re^3: How to sent binary data in socket programming ?
in thread How to sent binary data in socket programming ?


hi...

That files contains data on mail first, anyway this is the records of the files:-
4A 42 48 42 30 30 30 34 30 30 30 30 30 30 33 30 30 31 30 30 30 30 30 3 +0 30 30 30 38 39 36 33 32 30 30 20 20 20 20 20 20 20 20 20 20 20 20 2 +0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2 +0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2 +0 20 20 20 20 20 20 20 20 20 20 20 20 20 30 32 30 37 32 37 36 33 38 3 +0 30 20 30 32 20 20 20 20 20 20 20 20 20 20 20 20 20 20 31 33 30 37 3 +1 32 31 34 34 34 31 31 30 30 30 30 33 33 20 20 20 20 20 20 20 20 4A 4 +2 48 42 30 30 31 34 30 30 30 30 30 30 32 30 30 39 30 30 30 30 30 30 3 +0 30 30 35 32 30 37 34 34 35 20 20 20 20 20 20 20 20 20 20 20 20 20 2 +0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2 +0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2 +0 20 20 20 20 20 20 20 20 20 20 20 20 39 39 00 00 00 00 00 00 00 00 0 +0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0 +0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0 +0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 <br/> <br>This is the result after i run the script<br/> <code> DATA : 4A4248423030303430303030303033303031303030303030303030383936333 +230302020202020202020202020202020202020202020202020202020202020202020 +202020202020202020202020202020202020202020202020202020202020202020202 +020202020203032303732373633383030203032202020202020202020202020202031 +333037313231343434313130303030333320202020202020204A42484230303134303 +030303030323030393030303030303030303532303734343520202020202020202020 +202020202020202020202020202020202020202020202020202020202020202020202 +020202020202020202020202020202020202020202020202020202039390000000000 +000000000000000000000000000000000000000000000000000000000000000000000 +000000000000000000000000000000000000000000000000000000000000000000000 +00 ASCII: JBHB000400000030010000000008963200 + 02072763800 02 + 130712144411000033 JBHB001400000020090000000005207445 + 99  Connected to server [19.25.15.22] with port 1998 Sent binary data as request to 19.25.15.22 [length 344] Message from Server :

Based on the result, the recv() did not display anything. Why this is happened ? is it I am wrong ?. For your information, my connection using TCP/IP and connected to cisco router, is it different with UDP ?

I am trace the data packet using nettl command for hpux server.