| | |
how do I send structures using csocket across network?
Please support our C advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Sep 2005
Posts: 17
Reputation:
Solved Threads: 0
I use CSocket with send() and recv() to send and receive structure packets of type Packet as follows:
class Packet {
int dataLen;
char data[1024];
} packet;
I tried but the received structure elements contained garbage. What would the code be on the send and receive sides of the app ? Please help.
Rgds.
perlsu
class Packet {
int dataLen;
char data[1024];
} packet;
I tried but the received structure elements contained garbage. What would the code be on the send and receive sides of the app ? Please help.
Rgds.
perlsu
![]() |
Similar Threads
- SMS Message With PHP/MYSQL (PHP)
- help on final year project (Networking Hardware Configuration)
- P2P based chat (C#)
- Question about 'dim'ing things (Visual Basic 4 / 5 / 6)
- wireless conection problem (Networking Hardware Configuration)
- Privacy Retalliation (Windows NT / 2000 / XP)
- converting to strings.. (C)
- Age of Mythology transfer from one computer to another. (Windows NT / 2000 / XP)
Other Threads in the C Forum
- Previous Thread: reading a file...please help
- Next Thread: How do I pass the multiple parameters to arglist of _beginthread?
| Thread Tools | Search this Thread |
adobe api array arrays binarysearch calculate char cm copyanyfile copypdffile cprogramme createcopyoffile createprocess() csyntax directory dynamic feet fflush file floatingpointvalidation fork forloop frequency getlasterror givemetehcodez global graphics gtkgcurlcompiling hacking hardware highest homework i/o inches incrementoperators initialization iso kernel kilometer km linked linkedlist linux linuxsegmentationfault list lists locate logical_drives loopinsideloop. match matrix microsoft motherboard mqqueue multi mysql odf open opensource openwebfoundation owf pattern pdf performance pointer pointers posix power probleminc program programming pyramidusingturboccodes read recursion recv repetition research scanf scheduling scripting segmentationfault send shape socketprograming socketprogramming stack standard string strings suggestions systemcall test testautomation unix urboc user voidmain() wab win32api windows.h





