# HG changeset patch # User kazz@e065701.local # Date 1256274667 -32400 # Node ID 0352536c33fa17d6ba67c44a5f4c1c0a7b73e107 # Parent 6a8b61884a97f0dcd38f52d8e07e011eee5ab857 (example: writer) get linda server addr from commandline arg. diff -r 6a8b61884a97 -r 0352536c33fa examples/filesend/writer.c --- 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;