mirror of
https://github.com/Halofreak1990/XFXFramework
synced 2024-12-26 13:49:34 +01:00
Added 'ValueTypes' Single and Double Added some components in the new System::Net namespace Added the Console class, which can be used to output text to the screen Updated a bunch of structs to include the IComparable and IEquatable interfaces, and inheritance from Object to allow better interoperability between container classes and other types Replaced all exception handling code with a report to stdout.txt - this will, I hope, eventually be reversed, but as of yet, there is no support for exceptions. BEWARE! Even though all libraries correctly compile, you cannot use any class/structure that inherits from a template class, because stupid G++ wants to include exception handling for each template.
88 lines
1.9 KiB
C++
88 lines
1.9 KiB
C++
#ifndef _SYSTEM_NET_SOCKETS_ENUMS_
|
|
#define _SYSTEM_NET_SOCKETS_ENUMS_
|
|
|
|
namespace System
|
|
{
|
|
namespace Net
|
|
{
|
|
namespace Sockets
|
|
{
|
|
struct AddressFamily
|
|
{
|
|
enum type
|
|
{
|
|
InterNetwork,
|
|
InterNetworkV6,
|
|
Unknown,
|
|
Unspecified
|
|
};
|
|
};
|
|
|
|
struct ProtocolType
|
|
{
|
|
enum type
|
|
{
|
|
Tcp = 6,
|
|
Udp = 17,
|
|
Unknown = -1,
|
|
Unspecified = 0
|
|
};
|
|
};
|
|
|
|
struct SocketAsyncOperation
|
|
{
|
|
enum type
|
|
{
|
|
Connect = 2,
|
|
None = 0,
|
|
Receive = 4,
|
|
RecieveFrom = 5,
|
|
Send = 7,
|
|
SendTo = 9
|
|
};
|
|
};
|
|
|
|
struct SocketError
|
|
{
|
|
enum type
|
|
{
|
|
AccessDenied = 10013,
|
|
AddressAlreadyInUse = 10048,
|
|
AddressFamilyNotSupported = 10047,
|
|
AddressNotAvailable = 10049,
|
|
|
|
};
|
|
};
|
|
|
|
struct SocketShutdown
|
|
{
|
|
enum type
|
|
{
|
|
Both,
|
|
Recieve,
|
|
Send
|
|
};
|
|
};
|
|
|
|
struct SocketType
|
|
{
|
|
enum type
|
|
{
|
|
Unknown = -1,
|
|
Stream = 1,
|
|
Dgram = 2,
|
|
};
|
|
};
|
|
|
|
typedef AddressFamily::type AddressFamily_t; // Specifies the addressing scheme that an instance of the System::Net::Sockets::Socket class can use.
|
|
typedef ProtocolType::type ProtocolType_t; // Specifies the protocols that the System::Net::Sockets::Socket class supports.
|
|
typedef SocketAsyncOperation::type SocketAsyncOperation_t; // The type of asynchronous socket operation most recently performed with this object.
|
|
typedef SocketError::type SocketError_t; // Defines error codes for the System::Net::Sockets::Socket class.
|
|
typedef SocketShutdown::type SocketShutdown_t; // Defines constants that are used by the System::Net::Sockets::Socket::Shutdown(System::Net::Sockets::SocketShutdown) method.
|
|
typedef SocketType::type SocketType_t; // Specifies the type of socket that an instance of the System::Net::Sockets::Socket class represents.
|
|
}
|
|
}
|
|
}
|
|
|
|
#endif //_SYSTEM_NET_ENUMS_
|