Logo 
Search:

Networking Articles

Submit Article
Home » Articles » Networking » TCP/IPRSS Feeds

TCP/IP program of client interface routine that calls initw_1

Posted By: Milind Mishra     Category: Networking     Views: 1591

TCP/IP program of client interface routine that calls initw_1.

Code for TCP/IP program of client interface routine that calls initw_1 in Networking

#include <rpc/rpc.h>
#include <stdio.h>
#include "rdict.h"/* Client-side stub interface routines written by programmer */extern    CLIENT    *handle;        /* handle for remote procedure    */staticint    *ret;            /* tmp storage for return code    */int
initw()
{
    ret = initw_1(0, handle);
    return ret==0 ? 0 : *ret;
}

/*------------------------------------------------------------------------ * insertw - client interface routine that calls insertw_1 *------------------------------------------------------------------------ */int
insertw(char *word)
{
    char    **arg;            /* pointer to argument */
    arg = &word;
    ret = insertw_1(arg, handle);
    return ret==0 ? 0 : *ret;
}

/*------------------------------------------------------------------------ * deletew - client interface routine that calls deletew_1 *------------------------------------------------------------------------ */int
deletew(char *word)
{
    char    **arg;            /* pointer to argument */

    arg = &word;
    ret = deletew_1(arg, handle);
    return ret==0 ? 0 : *ret;
}

/*------------------------------------------------------------------------ * lookupw - client interface routine that calls lookupw_1 *------------------------------------------------------------------------ */int
lookupw(char *word)
{
    char    **arg;            /* pointer to argument */

    arg = &word;
    ret = lookupw_1(arg, handle);
    return ret==0 ? 0 : *ret;
}
  
Share: 



Milind Mishra
Milind Mishra author of TCP/IP program of client interface routine that calls initw_1 is from India.
 
View All Articles

 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!