Use passive for ftp.
1 /** vim: set ts=4 sw=4 et tw=99:
3 * === Stripper for Metamod:Source ===
4 * Copyright (C) 2005-2009 David "BAILOPAN" Anderson
5 * No warranties of any kind.
6 * Based on the original concept of Stripper2 by botman
8 * License: see LICENSE.TXT
9 * ===================================
11 #ifndef _INCLUDE_STRIP_PARSER_H
12 #define _INCLUDE_STRIP_PARSER_H
14 #include <sh_string.h>
22 CACHEABLE() : marked(true), last_alloc(0), last_free(0) { };
31 SourceHook::String key;
32 SourceHook::String val;
36 struct ent_prop : public CACHEABLE
38 SourceHook::String key;
39 SourceHook::String val;
44 SourceHook::List<parse_pair *> match;
45 SourceHook::List<parse_pair *> to_replace;
46 SourceHook::List<parse_pair *> to_remove;
47 SourceHook::List<parse_pair *> to_insert;
56 void SetEntityList(const char *ents);
57 void ApplyFileFilter(const char *file);
58 const char *ToString();
60 void RunRemoveFilter(SourceHook::List<parse_pair *> &filters);
61 void RunAddFilter(SourceHook::List<parse_pair *> &list);
62 void RunReplaceFilter(replace_prop &replace, SourceHook::List<parse_pair *> &props);
64 void _BuildPropList();
66 SourceHook::String *AllocString();
67 void FreeString(SourceHook::String *str);
68 ent_prop *AllocProp();
69 void FreeProp(ent_prop *prop);
71 SourceHook::CStack<SourceHook::String *> m_StringCache;
72 SourceHook::CStack<ent_prop *> m_PropCache;
73 void AppendToString(const char* buf, size_t len);
76 size_t m_tostring_len;
77 size_t m_tostring_maxlen;
78 SourceHook::List<SourceHook::List<ent_prop *> *> m_props;
79 SourceHook::List<SourceHook::String *> m_lines;
82 pcre_extra *brk_re_extra;
85 #endif /* _INCLUDE_STRIP_PARSER_H */