From e2633633030e62994ca41ff62006e3e40517c73a Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Wed, 29 Sep 2010 10:53:01 +0200 Subject: WIP -- resolving, crafting packet. --- lib/examples/client.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/examples/client.c') diff --git a/lib/examples/client.c b/lib/examples/client.c index eab4390..a6b7999 100644 --- a/lib/examples/client.c +++ b/lib/examples/client.c @@ -55,8 +55,12 @@ int main (int argc, char *argv[]) { struct rs_error *err; + char *host; + int port; - err = rsx_client (strsep (argv + 1, ":"), atoi (argv[1])); + host = strsep (argv + 1, ":"); + port = atoi (argv[1]); + err = rsx_client (host, port); if (!err) return -1; fprintf (stderr, "%s\n", rs_err_msg (err, 0)); -- cgit v1.1