Data Structures | Typedefs | Functions | Variables

HostLookup.cc File Reference

A brief file description. More...

#include "libts.h"
#include "HostLookup.h"
#include "MatcherUtils.h"
Include dependency graph for HostLookup.cc:

Go to the source code of this file.

Data Structures

struct  charIndex_el
struct  charIndexIterInternal
struct  charIndexIterState
class  charIndex
class  hostArray

Typedefs

typedef int hostArrayIterState

Functions

bool domaincmp (const char *hostname, const char *domain)
int hostcmp (const char *c1, const char *c2)
static void empty_print_fn (void *)

Variables

static const unsigned char asciiToTable [256]
static const int numLegalChars = 38
static charIndexIterInternal default_iter = { NULL, -1 }
const char * LeafTypeStr []
static int negative_one = -1

Detailed Description

A brief file description.

License

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition in file HostLookup.cc.


Typedef Documentation

typedef int hostArrayIterState

Definition at line 578 of file HostLookup.cc.


Function Documentation

bool domaincmp ( const char *  hostname,
const char *  domain 
)

Definition at line 39 of file HostLookup.cc.

References ink_assert.

static void empty_print_fn ( void *   )  [static]

Definition at line 801 of file HostLookup.cc.

Referenced by HostLookup::Print().

int hostcmp ( const char *  c1,
const char *  c2 
)

Definition at line 131 of file HostLookup.cc.

References ink_assert.


Variable Documentation

const unsigned char asciiToTable[256] [static]

Definition at line 172 of file HostLookup.cc.

Referenced by charIndex::Insert(), and charIndex::Lookup().

charIndexIterInternal default_iter = { NULL, -1 } [static]

Definition at line 256 of file HostLookup.cc.

const char* LeafTypeStr[]
Initial value:
 {
  "Leaf Invalid",
  "Host (Partial)",
  "Host (Full)",
  "Domain (Full)",
  "Domain (Partial)"
}

Definition at line 698 of file HostLookup.cc.

int negative_one = -1 [static]

Definition at line 706 of file HostLookup.cc.

const int numLegalChars = 38 [static]

Definition at line 208 of file HostLookup.cc.

Referenced by charIndex::iter_next(), and charIndex_el::~charIndex_el().