diff options
author | Linus Nordberg <linus@nordu.net> | 2010-09-29 10:53:01 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2010-09-29 10:53:01 +0200 |
commit | e2633633030e62994ca41ff62006e3e40517c73a (patch) | |
tree | 60d68506aac2dd1499f19f766c8fc5a26a96a231 /lib/examples/client.c | |
parent | 7ef1fda097c5c96e201d50db2892d1c2354eb6d4 (diff) |
WIP -- resolving, crafting packet.
Diffstat (limited to 'lib/examples/client.c')
-rw-r--r-- | lib/examples/client.c | 6 |
1 files changed, 5 insertions, 1 deletions
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)); |