Photon 1.0.0
Loading...
Searching...
No Matches
Socket.hpp File Reference
#include <Core.hpp>
#include <fcntl.h>
#include <Socket.inl>

Go to the source code of this file.

Classes

class  Photon::Network::Socket
 

Namespaces

namespace  Photon
 This file is also about defining core js concepts.
 
namespace  Photon::Network
 

Macros

#define SOCKET_ERROR   -1
 
#define WSAECONNRESET   ECONNRESET
 
#define WSAEWOULDBLOCK   EWOULDBLOCK
 
#define WSAGetLastError()   errno
 
#define PHOTON_SOCKET   socket
 
#define PHOTON_CLOSE   close
 
#define PHOTON_SHUTDOWN   shutdown
 
#define PHOTON_ACCEPT   accept
 
#define PHOTON_CONNECT   connect
 
#define PHOTON_IOCTL   ioctl
 
#define FIONBIO   FNONBLOCK
 
#define FIOASYNC   FASYNC
 

Typedefs

using Photon::Network::CSocket = uintptr_t
 

Enumerations

enum class  Photon::SOCKET_FLAG : std::int64_t { Photon::NON_BLOCKING = FIONBIO , Photon::ASYNC = FIOASYNC }
 
enum class  Photon::Network::SOCKET_TYPE { Photon::Network::TCP , Photon::Network::UDP , Photon::Network::COUNT }
 

Macro Definition Documentation

◆ FIOASYNC

#define FIOASYNC   FASYNC

◆ FIONBIO

#define FIONBIO   FNONBLOCK

◆ PHOTON_ACCEPT

#define PHOTON_ACCEPT   accept

◆ PHOTON_CLOSE

#define PHOTON_CLOSE   close

◆ PHOTON_CONNECT

#define PHOTON_CONNECT   connect

◆ PHOTON_IOCTL

#define PHOTON_IOCTL   ioctl

◆ PHOTON_SHUTDOWN

#define PHOTON_SHUTDOWN   shutdown

◆ PHOTON_SOCKET

#define PHOTON_SOCKET   socket

◆ SOCKET_ERROR

#define SOCKET_ERROR   -1

◆ WSAECONNRESET

#define WSAECONNRESET   ECONNRESET

◆ WSAEWOULDBLOCK

#define WSAEWOULDBLOCK   EWOULDBLOCK

◆ WSAGetLastError

#define WSAGetLastError ( )    errno