diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-11-11 15:17:40 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-11-11 15:17:40 +0000 |
commit | 69c3a32784b8c638ea10c269c3f63ede86b8aaa0 (patch) | |
tree | ee065fbe0bbeaf3121ff359e2cca3671b426de08 /include/hashcomp.h | |
parent | 0b230aa96b81b7a6426e48a509a19699556cf190 (diff) |
Add irc::portparser, a class to parse port ranges in the form "6660,6661,6662-6669,7000".
Needs testing, watch next few commits.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5690 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/hashcomp.h')
-rw-r--r-- | include/hashcomp.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/hashcomp.h b/include/hashcomp.h index b2756b340..b22ba1267 100644 --- a/include/hashcomp.h +++ b/include/hashcomp.h @@ -292,6 +292,18 @@ namespace irc } }; + class portparser : public classbase + { + private: + commasepstream* sep; + long in_range; + long range_begin; + long range_end; + public: + portparser(const std::string &source); + ~portparser(); + long GetToken(); + }; /** The irc_char_traits class is used for RFC-style comparison of strings. * This class is used to implement irc::string, a case-insensitive, RFC- |