TORListen.h

From mr.sysel, 4 Years ago, written in C, viewed 526 times.
URL http://paste.security-portal.cz/view/d3377037 Embed
Download Paste or View Raw
  1. /*
  2. *  Copyright (C) 2012  mr.sysel
  3. *
  4. *  This file is part of TOR CryptoAPI Provider
  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_LISTEN_H_
  19. #define _TOR_LISTEN_H_
  20.  
  21. #define TOR_LISTEN_EVENT_CREATED                                                                        1
  22. #define TOR_LISTEN_EVENT_FINISHED                                                                       2
  23.  
  24. typedef struct tor_listen {
  25.         TOR_THREADS             *lpModRPC;
  26.         TOR_EVENT               *lpEventCreated;
  27.         TOR_THREAD              *lpThread;
  28.         char                    szPipeName[MAX_PATH];
  29. } TOR_LISTEN, *PTOR_LISTEN;
  30.  
  31. TOR_ERROR                       TORListenInit(TOR_LISTEN **lpListen, const char *lpPipeName);
  32. void                            TORListenDestroy(TOR_LISTEN *lpListen, TOR_ERROR *lpExitCode);
  33. TOR_ERROR WINAPI        TORListenTProc(TOR_THREAD *lpThread, TOR_LISTEN *lpListen);
  34.  
  35. #endif
  36.  

Reply to "TORListen.h"

Here you can reply to the paste above