libmpdclient 2.22
socket.h
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-2-Clause
2// Copyright The Music Player Daemon Project
3
10#ifndef LIBMPDCLIENT_SOCKET_H
11#define LIBMPDCLIENT_SOCKET_H
12
13#ifdef WIN32
14#include <winsock2.h>
15typedef SOCKET mpd_socket_t;
16#define MPD_INVALID_SOCKET INVALID_SOCKET
17#else
18typedef int mpd_socket_t;
19#define MPD_INVALID_SOCKET -1
20#endif
21
22#endif
int mpd_socket_t
Definition socket.h:18