Files
SLikeNet/DependentExtensions/WinRT/WinRTSocketAdapter.h
2025-11-24 14:19:51 +05:30

82 lines
2.8 KiB
C++

/*
* This file was taken from RakNet 4.082.
* Please see licenses/RakNet license.txt for the underlying license and related copyright.
*
* Modified work: Copyright (c) 2018, SLikeSoft UG (haftungsbeschränkt)
*
* This source code was modified by SLikeSoft. Modifications are licensed under the MIT-style
* license found in the license.txt file in the root directory of this source tree.
* Alternatively you are permitted to license the modifications under the Simplified BSD License.
*/
/*
#if defined(WINDOWS_STORE_RT)
#pragma once
#include <windows.h>
#include "WinRTSockAddr.h"
#include "SocketIncludes.h"
namespace SLNet
{
int WinRTClose( Windows::Networking::Sockets::DatagramSocket ^s);
int WinRTClose( Windows::Networking::Sockets::StreamSocket ^s);
Windows::Networking::Sockets::DatagramSocket^ WinRTCreateDatagramSocket(int af,
int type,
int protocol);
Windows::Networking::Sockets::StreamSocket^ WinRTCreateStreamSocket(int af,
int type,
int protocol);
int WinRTBind(Windows::Networking::Sockets::DatagramSocket ^s,
const struct sockaddr *addr,
socklen_t namelen);
int WinRTBind(Windows::Networking::Sockets::StreamSocket ^s,
const struct sockaddr *addr,
socklen_t namelen);
int WinRTGetSockName(Windows::Networking::Sockets::DatagramSocket ^s,
struct sockaddr *name,
socklen_t* namelen);
int WinRTGetSockOpt (Windows::Networking::Sockets::DatagramSocket ^s,
int level,
int optname,
char * optval,
socklen_t *optlen);
int WinRTInet_Addr(const char * cp);
int WinRTIOCTLSocket(Windows::Networking::Sockets::DatagramSocket ^s,
long cmd,
unsigned long *argp);
int WinRTListen (Windows::Networking::Sockets::DatagramSocket ^s,
int backlog);
int WinRTListen (Windows::Networking::Sockets::StreamSocket ^s,
int backlog);
int WinRTSetSockOpt(Windows::Networking::Sockets::DatagramSocket ^s,
int level,
int optname,
const char * optval,
socklen_t optlen);
int WinRTSetSockOpt(Windows::Networking::Sockets::StreamSocket ^s,
int level,
int optname,
const char * optval,
socklen_t optlen);
}
#endif // defined(WINDOWS_STORE_RT)
*/