Click here to Skip to main content
15,886,788 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi, I have edited my question...

Im having problem with this part of program,

if ((n = sendto(dccp_sockfd,cmdframe, 18, 0, (struct sockaddr*)&PMU_addr,sizeof(PMU_addr)) == -1)) {

perror("sendto");// when I use the program, this error execute at runtime by saying sendto: broken pipe


} else {



kind regards
Arsineh
Posted
Updated 9-Jun-13 12:00pm
v2
Comments
Matthew Faithfull 6-Jun-13 18:57pm    
I think you may need to post more of your code for anyone to work out what's wrong. I found this page http://www.linuxfoundation.org/collaborate/workgroups/networking/dccp which seems to contain lots of useful DCCP stuff including 'C' example code. You might want to check that out.

1 solution

You should search for some working sample code.

I guess you mismatch some flags
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900