소스 검색

update comment to reflect our TOR_INVALID_SOCKET convention

Roger Dingledine 13 년 전
부모
커밋
2de0eeaa72
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/or/or.h

+ 2 - 1
src/or/or.h

@@ -1020,7 +1020,8 @@ typedef struct connection_t {
   /** CONNECT/SOCKS proxy client handshake state (for outgoing connections). */
   unsigned int proxy_state:4;
 
-  /** Our socket; -1 if this connection is closed, or has no socket. */
+  /** Our socket; set to TOR_INVALID_SOCKET if this connection is closed,
+   * or has no socket. */
   tor_socket_t s;
   int conn_array_index; /**< Index into the global connection array. */