]> andersk Git - moira.git/commitdiff
added command to get the hostname of the server
authormar <mar>
Wed, 16 Aug 1989 11:27:02 +0000 (11:27 +0000)
committermar <mar>
Wed, 16 Aug 1989 11:27:02 +0000 (11:27 +0000)
clients/mrtest/mrtest.c

index 0cbf3a05d1384abcd6fc78974e551c6c517aa7f9..50c16b48d80fc6299cd0f11563ce6231f160a53e 100644 (file)
@@ -98,6 +98,19 @@ test_disconnect()
        if (status) ss_perror(ss, status, 0);
 }
 
+test_host()
+{
+        char host[BUFSIZ];
+        int status;
+
+        bzero(host, sizeof(host));
+
+       if (status = sms_host(host, sizeof(host) - 1))
+           ss_perror(ss, status, 0);
+       else
+           printf("You are connected to host %s\n", host);
+}
+
 test_auth()
 {
        int status;
This page took 0.046202 seconds and 5 git commands to generate.