Add getaddrinfo based DNS lookup implementation.
This commit is contained in:
parent
2b442f949b
commit
0cce1123fc
4 changed files with 246 additions and 8 deletions
|
@ -209,7 +209,7 @@ alias ConnectCallback = void delegate(StreamSocketFD, ConnectStatus);
|
|||
alias AcceptCallback = void delegate(StreamListenSocketFD, StreamSocketFD);
|
||||
alias IOCallback = void delegate(StreamSocketFD, IOStatus, size_t);
|
||||
alias DatagramIOCallback = void delegate(DatagramSocketFD, IOStatus, size_t, scope Address);
|
||||
alias DNSLookupCallback = void delegate(DNSLookupID, scope Address[] results);
|
||||
alias DNSLookupCallback = void delegate(DNSLookupID, DNSStatus, scope Address[]);
|
||||
alias FileIOCallback = void delegate(FileFD, IOStatus, size_t);
|
||||
alias EventCallback = void delegate(EventID);
|
||||
alias SignalCallback = void delegate(int);
|
||||
|
@ -268,6 +268,11 @@ enum IOStatus {
|
|||
wouldBlock /// Returned for `IOMode.immediate` when no data is readily readable/writable
|
||||
}
|
||||
|
||||
enum DNSStatus {
|
||||
ok,
|
||||
error
|
||||
}
|
||||
|
||||
/** Specifies the kind of change in a watched directory.
|
||||
*/
|
||||
enum FileChangeKind {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue