upgraded use DNS asynchronously in order to avoid lock ups

This commit is contained in:
Jeff Hill
2000-10-10 22:39:36 +00:00
parent f967804a0d
commit 05134e7b9f
11 changed files with 106 additions and 16 deletions

View File

@@ -0,0 +1,41 @@
/*
* $Id$
*
*
* L O S A L A M O S
* Los Alamos National Laboratory
* Los Alamos, New Mexico 87545
*
* Copyright, 1986, The Regents of the University of California.
*
*
* Author Jeffrey O. Hill
* johill@lanl.gov
* 505 665 1831
*/
#include "iocinf.h"
#include "msgForMultiplyDefinedPV_IL.h"
tsFreeList < class msgForMultiplyDefinedPV, 16 > msgForMultiplyDefinedPV::freeList;
msgForMultiplyDefinedPV::msgForMultiplyDefinedPV (
cac &cacRefIn, const char *pChannelName, const char *pAcc,
const osiSockAddr &rej ) :
ipAddrToAsciiAsynchronous ( rej ),
cacRef ( cacRefIn )
{
strncpy ( this->acc, pAcc, sizeof ( this->acc ) );
this->acc[ sizeof ( this->acc ) - 1 ] = '\0';
strncpy ( this->channel, pChannelName, sizeof ( this->channel ) );
this->channel[ sizeof ( this->channel ) - 1 ] = '\0';
}
void msgForMultiplyDefinedPV::ioCompletionNotify ( const char *pHostNameRej )
{
char buf[256];
sprintf ( buf, "Channel: \"%.64s\", Connecting to: %.64s, Ignored: %.64s",
this->channel, this->acc, pHostNameRej );
genLocalExcep ( this->cacRef, ECA_DBLCHNL, buf );
}