added a compiler for ASN/BER syntax, avoids interpreting it for

every packet we parse.
This commit is contained in:
blackhedd 2006-09-02 16:48:07 +00:00
parent 7fd1089115
commit bc54a9c826
2 changed files with 34 additions and 12 deletions

View file

@ -271,7 +271,7 @@ module Net
SearchScope_WholeSubtree = 2
SearchScopes = [SearchScope_BaseObject, SearchScope_SingleLevel, SearchScope_WholeSubtree]
AsnSyntax = {
AsnSyntax = BER.compile_syntax({
:application => {
:constructed => {
0 => :array, # BindRequest
@ -306,7 +306,7 @@ module Net
3 => :array, # Seach referral
}
}
}
})
DefaultHost = "127.0.0.1"
DefaultPort = 389