DotNetDupe 4.0.6
C++17/20 Implementation of the .NET Base Class Library (BCL)
Loading...
Searching...
No Matches
DotNetDupe::System::Net Namespace Reference

Namespaces

namespace  Http
namespace  Security
namespace  Sockets
namespace  WebSockets

Classes

class  Dns
 Provides simple domain name resolution functionality. More...

Enumerations

enum class  HttpStatusCode {
  Continue = 100 , SwitchingProtocols = 101 , OK = 200 , Created = 201 ,
  Accepted = 202 , NonAuthoritativeInformation = 203 , NoContent = 204 , ResetContent = 205 ,
  PartialContent = 206 , MultipleChoices = 300 , Ambiguous = 300 , MovedPermanently = 301 ,
  Moved = 301 , Found = 302 , Redirect = 302 , SeeOther = 303 ,
  RedirectMethod = 303 , NotModified = 304 , UseProxy = 305 , Unused = 306 ,
  TemporaryRedirect = 307 , RedirectKeepVerb = 307 , PermanentRedirect = 308 , BadRequest = 400 ,
  Unauthorized = 401 , PaymentRequired = 402 , Forbidden = 403 , NotFound = 404 ,
  MethodNotAllowed = 405 , NotAcceptable = 406 , ProxyAuthenticationRequired = 407 , RequestTimeout = 408 ,
  Conflict = 409 , Gone = 410 , LengthRequired = 411 , PreconditionFailed = 412 ,
  RequestEntityTooLarge = 413 , RequestUriTooLong = 414 , UnsupportedMediaType = 415 , RequestedRangeNotSatisfiable = 416 ,
  ExpectationFailed = 417 , MisdirectedRequest = 421 , UnprocessableEntity = 422 , Locked = 423 ,
  FailedDependency = 424 , UpgradeRequired = 426 , PreconditionRequired = 428 , TooManyRequests = 429 ,
  RequestHeaderFieldsTooLarge = 431 , UnavailableForLegalReasons = 451 , InternalServerError = 500 , NotImplemented = 501 ,
  BadGateway = 502 , ServiceUnavailable = 503 , GatewayTimeout = 504 , HttpVersionNotSupported = 505 ,
  VariantAlsoNegotiates = 506 , InsufficientStorage = 507 , LoopDetected = 508 , NotExtended = 510 ,
  NetworkAuthenticationRequired = 511
}
 Contains the values of status codes defined for HTTP in RFC 9110 and RFC 7231. More...

Functions

static std::vector< StringCollectIpv4Addresses (struct addrinfo *result)
 Extract IPv4 string representations from linked addrinfo structures.
static struct addrinfo * ResolveHostAddrInfo (const char *host)
 Query system DNS resolver via getaddrinfo.

Enumeration Type Documentation

◆ HttpStatusCode

Contains the values of status codes defined for HTTP in RFC 9110 and RFC 7231.

Standards Conformance: RFC 9110 (HTTP Semantics), RFC 7231, RFC 6585, RFC 7540 (HTTP/2).

Enumerator
Continue 

Equivalent to HTTP status 100. Indicates that the client can continue with its request.

SwitchingProtocols 

Equivalent to HTTP status 101. Indicates that the protocol version is being changed.

OK 

Equivalent to HTTP status 200. Indicates that the request succeeded.

Created 

Equivalent to HTTP status 201. Indicates that the request resulted in a new resource created.

Accepted 

Equivalent to HTTP status 202. Indicates that the request has been accepted for further processing.

NonAuthoritativeInformation 
NoContent 
ResetContent 
PartialContent 
MultipleChoices 
Ambiguous 
MovedPermanently 
Moved 
Found 
Redirect 
SeeOther 
RedirectMethod 
NotModified 
UseProxy 
Unused 
TemporaryRedirect 
RedirectKeepVerb 
PermanentRedirect 
BadRequest 
Unauthorized 
PaymentRequired 
Forbidden 
NotFound 
MethodNotAllowed 
NotAcceptable 
ProxyAuthenticationRequired 
RequestTimeout 
Conflict 
Gone 
LengthRequired 
PreconditionFailed 
RequestEntityTooLarge 
RequestUriTooLong 
UnsupportedMediaType 
RequestedRangeNotSatisfiable 
ExpectationFailed 
MisdirectedRequest 
UnprocessableEntity 
Locked 
FailedDependency 
UpgradeRequired 
PreconditionRequired 
TooManyRequests 
RequestHeaderFieldsTooLarge 
UnavailableForLegalReasons 
InternalServerError 
NotImplemented 
BadGateway 
ServiceUnavailable 
GatewayTimeout 
HttpVersionNotSupported 
VariantAlsoNegotiates 
InsufficientStorage 
LoopDetected 
NotExtended 
NetworkAuthenticationRequired 

Definition at line 13 of file HttpStatusCode.h.

Function Documentation

◆ CollectIpv4Addresses()

std::vector< String > DotNetDupe::System::Net::CollectIpv4Addresses ( struct addrinfo * result)
static

Extract IPv4 string representations from linked addrinfo structures.

Iterate over linked addrinfo nodes.

Definition at line 41 of file Dns.cpp.

References DotNetDupe::System::String::String(), and CollectIpv4Addresses().

Referenced by CollectIpv4Addresses(), and DotNetDupe::System::Net::Dns::GetHostAddresses().

◆ ResolveHostAddrInfo()

struct addrinfo * DotNetDupe::System::Net::ResolveHostAddrInfo ( const char * host)
static

Query system DNS resolver via getaddrinfo.

Invoke native DNS resolution.

Definition at line 57 of file Dns.cpp.

References ResolveHostAddrInfo().

Referenced by DotNetDupe::System::Net::Dns::GetHostAddresses(), and ResolveHostAddrInfo().