socket.h
Go to the documentation of this file.
// SPDX-License-Identifier: BSD-2-Clause
// Copyright The Music Player Daemon Project
#ifndef LIBMPDCLIENT_SOCKET_H
#define LIBMPDCLIENT_SOCKET_H
#ifdef WIN32
#include <winsock2.h>
typedef SOCKET mpd_socket_t;
#define MPD_INVALID_SOCKET INVALID_SOCKET
#else
typedef int mpd_socket_t;
#define MPD_INVALID_SOCKET -1
#endif
#endif
mpd_socket_t
int mpd_socket_t
Definition socket.h:18