]> code.delx.au - gnu-emacs/blobdiff - src/process.h
Implement asynchronous name resolution
[gnu-emacs] / src / process.h
index e2e6ca92984bafbb616d3dbf6fb72da5a5e6dfb2..684434c17486bcf3af39be03cbb720dde4c61754 100644 (file)
@@ -161,14 +161,26 @@ struct Lisp_Process
        flag indicates that `raw_status' contains a new status that still
        needs to be synced to `status'.  */
     bool_bf raw_status_new : 1;
+    /* Whether this is a nonblocking socket. */
     bool_bf is_non_blocking_client : 1;
+    /* Whether this is a server or a client socket. */
     bool_bf is_server : 1;
     int raw_status;
+    /* The length of the socket backlog. */
     int backlog;
+    /* The port number. */
     int port;
+    /* The socket type. */
     int socktype;
+    /* The socket protocol. */
     int ai_protocol;
 
+#ifdef HAVE_GETADDRINFO_A
+    /* Whether the socket is waiting for response from an asynchronous
+       DNS call. */
+    struct gaicb* dns_request;
+#endif
+
 #ifdef HAVE_GNUTLS
     gnutls_initstage_t gnutls_initstage;
     gnutls_session_t gnutls_state;