LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-04-2004, 09:11 AM   #1
cynthia
LQ Newbie
 
Registered: Sep 2004
Posts: 20

Rep: Reputation: 0
prepare a proper msg


Hi,

I need to send over my TCP network a struct (struct X), but function recv accepts the parameter to send as char* buf.

is there a proper way to cast a struct into a char* or should I prepare a special function that transfers a struct to char* (by concatenating all data members of struct into a char*)?

thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to prepare for RHCE exam? david4 Linux - Enterprise 11 03-05-2009 09:58 PM
How do I prepare my hard drive to take the plunge LinuxLuvr Linux From Scratch 1 06-16-2005 12:27 AM
Prepare to help a n00boo iLLuSionZ Linux - Newbie 16 11-02-2003 01:41 AM
slooze error: validateInputs(); $msg = $mySlooze->renderPage($vars); echo $msg; ?> rioguia Linux - Software 0 01-26-2003 08:59 PM
How to prepare a local mail with attachment J_Szucs Linux - Software 2 07-07-2002 05:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:09 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