tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

ShutdownLayer.h (669B)


      1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
      2 *
      3 * This Source Code Form is subject to the terms of the Mozilla Public
      4 * License, v. 2.0. If a copy of the MPL was not distributed with this
      5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      6 
      7 #ifndef SHUTDOWNLAYER_H___
      8 #define SHUTDOWNLAYER_H___
      9 
     10 #include "nscore.h"
     11 #include "prio.h"
     12 
     13 namespace mozilla {
     14 namespace net {
     15 
     16 // This is only for windows. This layer will be attached jus before PR_CLose
     17 // is call and it will only call shutdown(sock).
     18 extern nsresult AttachShutdownLayer(PRFileDesc* fd);
     19 
     20 }  // namespace net
     21 }  // namespace mozilla
     22 
     23 #endif /* SHUTDOWN_H___ */