Unix Programming - Re: sending a packet using raw socket

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > April 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
Barry Margolin

2006-04-02, 7:41 pm

In article <1143249617.678691.134040@z34g2000cwc.googlegroups.com>,
"mangesh sawant" <mangesh@interinfosystems.com> wrote:

> First thanks for letting me know that structure can be sent over
> network .
>
> reason for using following sequence
> | 2 - strcpy(data , "");
> | 3- strcat(data , "data u want to send");
>
> if structure u want to send has n members then u have to use 'strcat' n
> times .


strcat() is only for strings, not structure members.

--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com