FACT++
1.0
Main Page
Related Pages
Namespaces
Classes
Files
Examples
int DimBrowser::getServices
(
const char *
serviceName
,
int
timeout
)
Definition at line
854
of file
diccpp.cxx
.
References
DimInfo::itsData
, and
str
.
855
{
856
char
*
str
;
857
858
// DimRpcInfo rpc((char *)"DIS_DNS/SERVICE_INFO",(char *)"\0");
859
// rpc.setData((char *)serviceName);
860
// str = rpc.getString();
861
if
(!
browserRpc
)
862
browserRpc
=
new
DimRpcInfo
((
char
*)
"DIS_DNS/SERVICE_INFO"
,timeout,(
char
*)
"\0"
);
863
browserRpc
->
setData
((
char
*)serviceName);
864
str =
browserRpc
->
getString
();
865
if
(
itsData
[0])
866
delete
itsData
[0];
867
itsData
[0] =
new
TokenString
(str,(
char
*)
"|\n"
);
868
currIndex
= 0;
869
if
(!
itsData
[0]->getNTokens())
870
return
(0);
871
return
(
itsData
[0]->getNTokens((
char
*)
"\n"
) + 1);
872
}
DimBrowser::browserRpc
DimRpcInfo * browserRpc
Definition:
dic.hxx:510
str
char str[80]
Definition:
test_client.c:7
DimRpcInfo
Definition:
dic.hxx:351
DimRpcInfo::getString
char * getString()
Definition:
dic.hxx:410
DimBrowser::itsData
TokenString * itsData[5]
Definition:
dic.hxx:506
TokenString
Definition:
tokenstring.hxx:6
DimRpcInfo::setData
void setData(void *data, int size)
Definition:
dic.hxx:413
DimBrowser::currIndex
int currIndex
Definition:
dic.hxx:507
DimBrowser
Generated on Sun Sep 18 2016 20:50:47 for FACT++ by
1.8.11