TORMain.h

From mr.sysel, 4 Years ago, written in C, viewed 527 times.
URL http://paste.security-portal.cz/view/d567eb95 Embed
Download Paste or View Raw
  1. /*
  2. *  Copyright (C) 2012  mr.sysel
  3. *
  4. *  This file is part of TOR HTTPS Rewrite
  5. *
  6. *  This program is free software; you can redistribute it and/or modify
  7. *  it under the terms of the GNU General Public License as published by
  8. *  the Free Software Foundation; either version 2 of the License, or
  9. *  (at your option) any later version.
  10. *
  11. *  This program is distributed in the hope that it will be useful,
  12. *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. *  GNU General Public License for more details.
  15. *  
  16. */
  17.  
  18. #ifndef _TOR_MAIN_H_
  19. #define _TOR_MAIN_H_
  20.  
  21. #define TOR_MAIN_LISTEN_MAX_COUNT                                                               20
  22. #define TOR_MAIN_EVENT_ABORT                                                                    1
  23.  
  24. typedef struct tor_main_listen {
  25.         TOR_SOCKET                      *lpSocket;
  26.         TOR_SSL_CTX                     *lpCtx;
  27.         DWORD                           dwEventID;
  28.         DWORD                           dwLocalAddr;
  29.         WORD                            wLocalPort;
  30.         TOR_MOD_PROXY_ADD       AddParam;
  31. } TOR_MAIN_LISTEN;
  32.  
  33. typedef struct tor_main {
  34.         TOR_CONF                        *lpConf;
  35.         TOR_EVENTS                      *lpEvents;
  36.         TOR_THREAD                      *lpThread;
  37.         TOR_THREADS                     *lpProxy;
  38.         TOR_MAIN_LISTEN         Listen[TOR_MAIN_LISTEN_MAX_COUNT];
  39.         DWORD                           dwListenCount;
  40.         BOOL                            bWSACleanup;
  41. } TOR_MAIN;
  42.  
  43. TOR_ERROR                       TORMainInit(TOR_MAIN **lpMain);
  44. void                            TORMainDestroy(TOR_MAIN *lpMain, TOR_ERROR *lpExitCode);
  45. TOR_ERROR WINAPI        TORMainTProc(TOR_THREAD *lpThread, TOR_MAIN *lpMain);
  46.  
  47. #endif
  48.  

Reply to "TORMain.h"

Here you can reply to the paste above