aboutsummaryrefslogtreecommitdiffstats
path: root/util/network/pair.h
blob: 0d4506f880d9e7a5c762c6dc32b390d24a54e2e3 (plain) (blame)
1
2
3
4
5
6
7
8
9
#pragma once

#include "init.h"

int SocketPair(SOCKET socks[2], bool overlapped, bool cloexec = false);

static inline int SocketPair(SOCKET socks[2]) {
    return SocketPair(socks, false, false);
}