chromium/net/socket/socket_options.cc

// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "net/socket/socket_options.h"

#include <cerrno>

#include "build/build_config.h"
#include "net/base/net_errors.h"

#if BUILDFLAG(IS_WIN)
#include <winsock2.h>
#include <ws2tcpip.h>
#elif BUILDFLAG(IS_POSIX) || BUILDFLAG(IS_FUCHSIA)
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <sys/socket.h>
#endif

namespace net {

int SetTCPNoDelay(SocketDescriptor fd, bool no_delay) {}

int SetReuseAddr(SocketDescriptor fd, bool reuse) {}

int SetSocketReceiveBufferSize(SocketDescriptor fd, int32_t size) {}

int SetSocketSendBufferSize(SocketDescriptor fd, int32_t size) {}

int SetIPv6Only(SocketDescriptor fd, bool ipv6_only) {}

}  // namespace net