home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.parallel
- Path: sparky!uunet!usc!howland.reston.ans.net!paladin.american.edu!gatech!hubcap!fpst
- From: bubeck@peanuts.informatik.uni-tuebingen.de (Till Bubeck)
- Subject: Re: putstring() in PVM
- Message-ID: <1993Jan11.164037.23193@hubcap.clemson.edu>
- Sender: bubeck@peanuts.informatik.uni-tuebingen.de (Till Bubeck)
- Nntp-Posting-Host: conrad.informatik.uni-tuebingen.de
- Organization: "Lehrstuhl fuer Technische Informatik, Uni Tuebingen"
- References: <1993Jan8.162353.12739@draper.com>
- Date: 11 Jan 1993 15:24:34 GMT
- Approved: parallel@hubcap.clemson.edu
- Lines: 24
-
- In article <1993Jan8.162353.12739@draper.com>, hct4708@ccfds2.draper.com (Hung-Chou Tai) writes:
- |> I'm just starting to program using PVM. I would like to pass a
- |> string from the host machine to a slave using putstring().
- |>
- |> However, I do not know what to put for the second argument of
- |> putstring. Is it the length of the string, or is it the number of
- |> strings I want to pass?
-
- Which second argument? I included the prototype for putstring():
-
- int putstring(cp)
- char *cp;
-
-
- Simply do:
- initsend(); /* clear send buffer */
- putstring("hello world"); /* put into buffer */
- snd(server_name,server_instnum,MESSAGE_TYPE); /* send buffer */
-
-
-
- Till Bubeck
-
-
-