Doctor: RPC Version of Eliza-like Conversation Program

Click to open or copy the files for the Doctor sample.

This sample is an RPC psychotherapy conversation application that demonstrates arrays, strings, and the size_is attribute.

Main Files

File Description
Doctor.idl Interface definition language file
Doctor.acf Attribute configuration file
Doctorc.c Client main program
Doctors.c Server main program
Doctorp.c Remote procedures
Makefile Nmake file to build for NT
Makefile.dos Nmake file to build for MS-DOS

Building SDK Samples

This sample uses the following keywords:

analyze; atoi; defined; doctor_analyze; doctor_shutdown; exit; fprintf; free; gets; isdigit; isprint; malloc; match; midl_user_allocate; midl_user_free; ndrclientinitializenew; ndrconformantstringbuffersize; ndrconformantstringmarshall; ndrconformantstringunmarshall; ndrconvert; ndrfcshort; ndrfreebuffer; ndrgetbuffer; ndrpointerfree; ndrsendreceive; ndrserverinitializenew; printf; rand; respond; rpcbindingfree; rpcbindingfromstringbinding; rpcexcept; rpcexceptioncode; rpcmgmtstopserverlistening; rpcmgmtwaitserverlisten; rpcraiseexception; rpcserverlisten; rpcserverregisterif; rpcserverunregisterif; rpcserveruseprotseqep; rpcstringbindingcompose; shutdown; sprintf; strcat; strcmp; strcpy; strmember; strncmp; strtok; synonyms; tolower; toupper; usage