I was trying to do simple client-server program using UDP where i'll send one string form client to server and the server acknowledge "got it". Things are working fine until i try to send the ack. The send to generates a "Transport endpoint is not connected" error. i'm using sentto() to sent in the following format it server.
sendto(sid, message, strlen(message), 0, (struct sockaddr *) &saddr, len);
and receive from like
recvfrom(sid, message, 50, 0, (struct sockaddr*) &caddr, &len);
i'm using AF_UNIX socket. The program is working fine when i ported it to AF_INET.
" it gives me an error saying to indent the code. but it is already indented. – Ps Akshay Dec 15 '15 at 13:40