1// Copyright 2011 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5//go:build js && wasm
6// +build js,wasm
7
8package net
9
10import "syscall"
11
12func setDefaultSockopts(s, family, sotype int, ipv6only bool) error {
13	return nil
14}
15
16func setDefaultListenerSockopts(s int) error {
17	return nil
18}
19
20func setDefaultMulticastSockopts(s int) error {
21	return nil
22}
23
24func setReadBuffer(fd *netFD, bytes int) error {
25	return syscall.ENOPROTOOPT
26}
27
28func setWriteBuffer(fd *netFD, bytes int) error {
29	return syscall.ENOPROTOOPT
30}
31
32func setKeepAlive(fd *netFD, keepalive bool) error {
33	return syscall.ENOPROTOOPT
34}
35
36func setLinger(fd *netFD, sec int) error {
37	return syscall.ENOPROTOOPT
38}
39