For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > March 2006 > Re: sending a packet using raw socket









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: sending a packet using raw socket
mangesh sawant

2006-03-25, 8:00 am

before doing strcat() u have to convert structure members into string
format using functions like sprintf(..) .
then only use strcat().

also if u do multiple strcat() then after
every strcat(data , "data u want to send")
u have to do strcat(data , "-");

"-" is used to separate data members of structure when u recieve it on
server side .

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com