[Ace-users] [ace-bugs] netsvcs:"Name Service"; some extension for initialization of NameServerAcceptor; Name_Handler.*[patch] and fix
Douglas C. Schmidt
schmidt at dre.vanderbilt.edu
Mon Dec 3 08:20:52 CST 2007
Hi Vladislav,
Thanks, I've added this!
Doug
> ACE VERSION: 5.6.1
>
> HOST MACHINE and OPERATING SYSTEM: Win32
>
> SYNOPSIS:
> NameServer(ACE_Name_Acceptor)cannot be properly initialized, if
> configuration parameters
> consist more then one (-p [port]) parameter.
>
> DESCRIPTION:
> Example from ACE_wrappers\netsvcs\ACE-netsvcs.html
> config string :
>
> dynamic Naming_Service Service_Object *
> ../lib/netsvcs:_make_ACE_Name_Acceptor()
> "-p 20222 -c NET_LOCAL -l /tmp -s MYDATABASE"
>
> If use this config file for starting up a server
> ACE_Name_Acceptor open port on another then port 20222.
>
> Bug: Name_Handler.cpp, line 64: this->parse_args (argc, argv);
> return value not checked.
>
>
> SAMPLE FIX/WORKAROUND:
> My patch fix it, and allow use all range config options (discrabled in
> ACE_wrappers\netsvcs\ACE-netsvcs.html)
> for ACE_Name_Acceptor::init.
> Description:
> Now ACE_Name_Acceptor own ACE_Naming_Context, and dont use singleton
> NAMING_CONTEXT::instance().
> ACE_Naming_Context of ACE_Name_Acceptor initialized in
> ACE_Name_Acceptor::parse_args;
> In case using: -c NET_LOCAL, hostname will set "localhost".
>
>
> Patch tested on.
>
> attaches: patches, modif sources.
>
>
>
> ____________________________________________
> Vladislav Zverev
> GTSS , St.Petersburg, Russia
> _______________________________________________
> ace-bugs mailing list
> ace-bugs at mail.cse.wustl.edu
> http://mail.cse.wustl.edu/mailman/listinfo/ace-bugs
More information about the Ace-users
mailing list