~fnux/yggdrasil-go-coap

yggdrasil-go-coap/net/udp_windows.go -rw-r--r-- 376 bytes
614f652bTimothée Floure Add syntax highlighting to code snippets in README 1 year, 8 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package net

import (
	"net"
)

// windows specific functions for udp

// SetUDPSocketOptions set controls FlagDst,FlagInterface to UDPConn - not supported by windows.
func SetUDPSocketOptions(conn *net.UDPConn) error {
	return nil
}

// correctSource takes oob data and returns new oob data with the Src equal to the Dst
func correctSource(oob []byte) []byte {
	return oob
}