The relevant socket option seems to be supported in Windows:
https://msdn.microsoft.com/en-us/library/windows/desktop/hh285668(v=vs.85).aspx

On Thu, Aug 18, 2016 at 8:33 AM <bari...@gmail.com> wrote:

> Does anyone know what it would take to implement the windows
> ControlMessage functions for the golang.org/x/net/ipv4 package? I am
> using the ipv4 package to specify the outgoing interface index of UDP
> requests. The following example works correctly on linux but fails with not
> supported by windows (https://play.golang.org/p/n8Q9xPxINn):
>
>
> l := ipv4.NewPacketConn(conn)
> if err = l.SetControlMessage(ipv4.FlagInterface, true); err != nil {
> log.Printf("Unable to set control message %s", err)
> } else {
> log.Printf("set ipv4.FlagInterface success")
> }
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to golang-nuts+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to