> dear friends,
> 
>     i am facing a problem in sending a nested
> structure over the network using a socket. I have sent
> 
> struct IP
> {
>    field 1;
>    field 2;
> 
> }*ipsend,*iprecv;
> 
> sendto(socket_id, ipsend, sizeof(ipsend), 0,(struct
> sockaddr *)&recv_addr, sizeof(sockaddr));
> 
> the program is sending only the fields 1,2,3 of the IP
> structure the fields of UDP & RTP stucture are not
>
If ipsend is a * then it's size is 4, isn't it?  Try
something like sizeof(struct IP) instead.

Chris
Tutty

------------------------------------------------
This message was sent using InSPire Net Webmail.
http://www.inspire.net.nz



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to