[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(usagi-users 02362) Re: IPv6 replcement for sendto() ?



Try this.

sendto(ifp->outsock, buf, len, MSG_DONTROUTE, (struct sockaddr *)&dst, sizeof(dst))

The fifth parameter is the sockaddr.

At 04:20 PM 5/13/2003 +0200, you wrote:
I'm trying to port an application to IPv6.
What is the IPv6 'sendto' function?
I'm especially stuck with the 5th parameter of the sendto() function - *to :

int  sendto(int s, const void *msg, size_t len, int flags, const struct
      sockaddr *to, socklen_t tolen);

Could it be sendmsg() ? I was hoping for sendto6() or something ;-)