Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals  

cms.cc File Reference

#include "rcs_defs.hh"
#include "rcsvers.hh"
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include <ctype.h>
#include <errno.h>
#include "cms.hh"
#include "cms_up.hh"
#include "cms_xup.hh"
#include "cms_aup.hh"
#include "cms_dup.hh"
#include "rcs_prnt.hh"
#include "dbg_mem.h"
#include "cmsdiag.hh"

Include dependency graph for cms.cc:

Include dependency graph

Go to the source code of this file.

Functions

int convert2upper (char *dest, char *src, int len)
char * cms_check_for_host_alias (char *in)

Variables

RCS_LINKED_LISTcmsHostAliases = NULL
CMS_CONNECTION_MODE cms_connection_mode = CMS_NORMAL_CONNECTION_MODE
int cms_encoded_data_explosion_factor = 4


Function Documentation

int convert2upper char *    dest,
char *    src,
int    len
[static]
 

Definition at line 100 of file cms.cc.

00101 {
00102   int
00103     i;
00104   for (i = 0; i < len; i++)
00105     {
00106       if (src[i] == 0)
00107         {
00108           dest[i] = 0;
00109           return i;
00110         }
00111 #ifndef UNDER_CE
00112       dest[i] = toupper (src[i]);
00113 #else
00114       if (src[i] >= 'a' && src[i] <= 'z')
00115         {
00116           dest[i] = (src[i] - 'a') + 'A';
00117         }
00118       else
00119         {
00120           dest[i] = src[i];
00121         }
00122 #endif
00123     }
00124   return i;
00125 }

char* cms_check_for_host_alias char *    in
 

Definition at line 2015 of file cms.cc.

02016 {
02017   if (NULL == in)
02018     {
02019       return NULL;
02020     }
02021   if (NULL == cmsHostAliases)
02022     {
02023       return NULL;
02024     }
02025   CMS_HOST_ALIAS_ENTRY *entry =
02026     (CMS_HOST_ALIAS_ENTRY *) cmsHostAliases->get_head ();
02027   while (NULL != entry)
02028     {
02029       if (!strncmp (entry->alias, in, 64))
02030         {
02031           return entry->host;
02032         }
02033     }
02034   return NULL;
02035 }


Variable Documentation

RCS_LINKED_LIST* cmsHostAliases = NULL
 

Definition at line 71 of file cms.cc.

CMS_CONNECTION_MODE cms_connection_mode = CMS_NORMAL_CONNECTION_MODE
 

Definition at line 72 of file cms.cc.

int cms_encoded_data_explosion_factor = 4
 

Definition at line 78 of file cms.cc.


Generated on Sun Dec 2 15:56:58 2001 for rcslib by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001