Mercurial > hg > FederatedLinda
changeset 71:0352536c33fa
(example: writer) get linda server addr from commandline arg.
author | kazz@e065701.local |
---|---|
date | Fri, 23 Oct 2009 14:11:07 +0900 |
parents | 6a8b61884a97 |
children | ad401b7c97bb |
files | examples/filesend/writer.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/examples/filesend/writer.c Thu Oct 22 21:26:46 2009 +0900 +++ b/examples/filesend/writer.c Fri Oct 23 14:11:07 2009 +0900 @@ -63,9 +63,11 @@ int tspace; int serial; int xml_id; - + const char *linda_serv = "localhost"; + if (argc > 1) + linda_serv = argv[1]; init_linda(); - tspace = open_linda_java("localhost", PORT); + tspace = open_linda_java(linda_serv, PORT); printf("open socket (tupple space id) = %d\n", tspace); serial = get_serial_id(tspace); xml_id = serial * 10;