Debian Codegraph @

COSMIC/EXAMPLES/smclient.c

raw
1 /* smclient.c: this file contains a small client example */
2 #include <stdio.h>
3 #include "sockets.h"
4
5 /* --------------------------------------------------------------------- */
6
7 int main()
8 {
9 Socket *skt = NULL;
10 char buf[128];
11
12 do {
13 skt= Sopen("SmallServer","c");
14 if(!skt) sleep(1);
15 } while(!skt);
16
17 Sscanf(skt,"%s",buf);
18 printf("buf<%s>\n",buf);
19 Sclose(skt);
20
21 return 0;
22 }
23 /* --------------------------------------------------------------------- */