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

#include "socket.h"

// assume s is non-blocking, return non-blocking socket
SOCKET Accept4(SOCKET s, struct sockaddr* addr, socklen_t* addrlen);
// create non-blocking socket
SOCKET Socket4(int domain, int type, int protocol);