home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / parallel / 2901 < prev    next >
Encoding:
Text File  |  1993-01-11  |  1.2 KB  |  38 lines

  1. Newsgroups: comp.parallel
  2. Path: sparky!uunet!usc!howland.reston.ans.net!paladin.american.edu!gatech!hubcap!fpst
  3. From: bubeck@peanuts.informatik.uni-tuebingen.de (Till Bubeck)
  4. Subject: Re: putstring() in PVM
  5. Message-ID: <1993Jan11.164037.23193@hubcap.clemson.edu>
  6. Sender: bubeck@peanuts.informatik.uni-tuebingen.de (Till Bubeck)
  7. Nntp-Posting-Host: conrad.informatik.uni-tuebingen.de
  8. Organization: "Lehrstuhl fuer Technische Informatik, Uni Tuebingen"
  9. References: <1993Jan8.162353.12739@draper.com>
  10. Date: 11 Jan 1993 15:24:34 GMT
  11. Approved: parallel@hubcap.clemson.edu
  12. Lines: 24
  13.  
  14. In article <1993Jan8.162353.12739@draper.com>, hct4708@ccfds2.draper.com (Hung-Chou Tai) writes:
  15. |> I'm just starting to program using PVM.  I would like to pass a
  16. |> string from the host machine to a slave using putstring().
  17. |> 
  18. |> However, I do not know what to put for the second argument of
  19. |> putstring.  Is it the length of the string, or is it the number of
  20. |> strings I want to pass?
  21.  
  22. Which second argument? I included the prototype for putstring():
  23.  
  24.      int putstring(cp)
  25.           char *cp;
  26.  
  27.  
  28. Simply do:
  29.      initsend();                    /* clear send buffer */
  30.     putstring("hello world");            /* put into buffer */
  31.     snd(server_name,server_instnum,MESSAGE_TYPE);    /* send buffer */
  32.     
  33.  
  34.  
  35. Till Bubeck
  36.  
  37.  
  38.