source: roaraudio/libroar/basic.c @ 5393:f50243718494

Last change on this file since 5393:f50243718494 was 5393:f50243718494, checked in by phi, 12 years ago

avoid compiler warnings about unused vars

File size: 17.4 KB
Line 
1//basic.c:
2
3/*
4 *      Copyright (C) Philipp 'ph3-der-loewe' Schafft - 2008-2012
5 *
6 *  This file is part of libroar a part of RoarAudio,
7 *  a cross-platform sound system for both, home and professional use.
8 *  See README for details.
9 *
10 *  This file is free software; you can redistribute it and/or modify
11 *  it under the terms of the GNU General Public License version 3
12 *  as published by the Free Software Foundation.
13 *
14 *  libroar is distributed in the hope that it will be useful,
15 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
16 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 *  GNU General Public License for more details.
18 *
19 *  You should have received a copy of the GNU General Public License
20 *  along with this software; see the file COPYING.  If not, write to
21 *  the Free Software Foundation, 51 Franklin Street, Fifth Floor,
22 *  Boston, MA 02110-1301, USA.
23 *
24 *  NOTE for everyone want's to change something and send patches:
25 *  read README and HACKING! There a addition information on
26 *  the license of this document you need to read before you send
27 *  any patches.
28 *
29 *  NOTE for uses of non-GPL (LGPL,...) software using libesd, libartsc
30 *  or libpulse*:
31 *  The libs libroaresd, libroararts and libroarpulse link this lib
32 *  and are therefore GPL. Because of this it may be illigal to use
33 *  them with any software that uses libesd, libartsc or libpulse*.
34 */
35
36#include "libroar.h"
37
38static int _start_server(struct roar_connection * con, const char * server, int type, int flags, uint_least32_t timeout) {
39#if !defined(ROAR_TARGET_WIN32) && !defined(ROAR_TARGET_MICROCONTROLLER)
40 enum {
41  NORMAL = 0,
42  SYSTEM = 1
43 } mode = NORMAL;
44 const char * daemonimage = NULL;
45 int socks[2];
46 int r;
47 char fhstr[12];
48
49 if ( !strncmp(server, "+fork=", 6) ) {
50  server += 6;
51  if ( server[0] == 0 ) {
52   // no special case, we just ignore it.
53  } else if ( server[0] == 'd' && server[1] == ':' ) {
54   server += 2;
55   daemonimage = server;
56  } else if ( server[0] == '!' ) {
57   server += 1;
58   daemonimage = server;
59   mode = SYSTEM;
60  } else {
61   roar_err_set(ROAR_ERROR_ILLSEQ);
62   return -1;
63  }
64 }
65
66 if ( daemonimage == NULL )
67  daemonimage = roar_libroar_get_config()->daemonimage;
68
69 // we keep this step to be compatible with older versions.
70 if ( daemonimage == NULL || *daemonimage == 0 ) {
71  daemonimage = getenv("ROAR_DAEMONIMAGE");
72  if ( daemonimage != NULL ) {
73   ROAR_WARN("_start_server(*): Usage of $ROAR_DAEMONIMAGE is obsolete. Use ROAR_OPTIONS=daemonimage:...");
74  }
75 }
76
77 if ( daemonimage == NULL || *daemonimage == 0 )
78  daemonimage = "roard";
79
80 if ( socketpair(AF_UNIX, SOCK_STREAM, 0, socks) == -1 ) {
81  roar_err_from_errno();
82  return -1;
83 }
84
85 r = roar_fork(NULL);
86
87 if ( r == -1 ) { // error!
88  ROAR_ERR("_start_server(*): Can not fork: %s", roar_error2str(roar_error));
89  close(socks[0]);
90  close(socks[1]);
91  return -1;
92 } else if ( r == 0 ) { // we are the child
93  close(socks[0]);
94
95  close(ROAR_STDIN ); // we do not want roard to have any standard input
96  close(ROAR_STDOUT); // STDOUT is also not needed, so we close it,
97                      // but STDERR we keep open for error messages.
98
99  snprintf(fhstr, sizeof(fhstr), "%i", socks[1]);
100
101  switch (mode) {
102   case NORMAL:
103     execlp(daemonimage, daemonimage, "--no-listen", "--client-fh", fhstr, (_LIBROAR_GOOD_CAST char*)NULL);
104    break;
105   case SYSTEM:
106     dup2(socks[1], ROAR_STDIN );
107     dup2(socks[1], ROAR_STDOUT);
108     execl("/bin/sh", "/bin/sh", "-c", daemonimage, (_LIBROAR_GOOD_CAST char*)NULL);
109     execlp("sh", "sh", "-c", daemonimage, (_LIBROAR_GOOD_CAST char*)NULL);
110    break;
111  }
112
113  // we are still alive?
114  ROAR_ERR("_start_server(*): alive after exec(), that's bad!");
115  _exit(1);
116 } else { // we are the parent
117  close(socks[1]);
118  if ( roar_vio_open_fh_socket(con->viocon, socks[0]) == -1 ) {
119   close(socks[0]);
120   return -1;
121  } else {
122   con->flags |= ROAR_CON_FLAGS_VIO;
123  }
124  return 0;
125 }
126
127 return -1;
128#else
129 ROAR_ERR("_start_server(*): There is no UNIX Domain Socket support in win32, download a real OS.");
130 return -1;
131#endif
132}
133
134static int _connect_internal(struct roar_connection * con, const char * server, int type, int flags, uint_least32_t timeout) {
135 struct roar_libroar_config * config = roar_libroar_get_config();
136 struct roar_vio_calls * vio;
137
138 if ( config->connect_internal != NULL ) {
139  vio = config->connect_internal(con, server, type, flags, timeout);
140  if ( vio == NULL )
141   return -1;
142
143  con->viocon = vio;
144  con->flags |= ROAR_CON_FLAGS_VIO;
145
146  return 0;
147 }
148
149 roar_err_set(ROAR_ERROR_BADHOST);
150 return -1;
151}
152
153static int _connect_server(struct roar_connection * con, const char * server, int type, int flags, uint_least32_t timeout) {
154#if defined(ROAR_HAVE_STAT) && defined(ROAR_HAVE_H_SYS_STAT)
155 struct stat sockstat;
156#endif
157 const char * obj = NULL;
158 char user_sock[128];
159 int is_decnet = 0;
160 int port = 0;
161 int i = 0;
162 int fh = -1;
163 int err;
164
165 if ( con == NULL || server == NULL ) {
166  roar_err_set(ROAR_ERROR_FAULT);
167  return -1;
168 }
169
170 if ( !strcmp(server, "+invalid") ) {
171  roar_err_set(ROAR_ERROR_CANCELED);
172  return -1;
173 } else if ( !strncmp(server, "+dstr=", 6) ) {
174  if ( roar_vio_open_dstr_simple(con->viocon, server+6, ROAR_VIOF_READWRITE) == -1 )
175   return -1;
176  con->flags |= ROAR_CON_FLAGS_VIO;
177  return 0;
178 } else if ( !strcmp(server, "+fork") || !strncmp(server, "+fork=", 6) ) {
179  return _start_server(con, server, type, flags, timeout);
180 } else if ( !strcmp(server, "+internal") || !strncmp(server, "+internal=", 10) ) {
181  return _connect_internal(con, server, type, flags, timeout);
182 }
183
184 strncpy(user_sock, server, sizeof(user_sock)-1);
185 user_sock[sizeof(user_sock)-1] = 0;
186
187
188 if ( *user_sock != '/' ) { // don't test AF_UNIX sockets for ports
189  for (i = 0; user_sock[i] != 0; i++) {
190   if ( user_sock[i] == ':' ) {
191    if ( user_sock[i+1] == ':' ) { // DECnet, leave unchanged
192     is_decnet = 1;
193     obj = &user_sock[i+2];
194     break;
195    }
196
197    port = atoi(&(user_sock[i+1]));
198    user_sock[i] = 0;
199    break;
200   }
201  }
202 }
203
204 if ( is_decnet ) {
205  if ( *user_sock == ':' ) {
206   if ( roar_socket_get_local_nodename() != NULL ) {
207    strncpy(user_sock, roar_socket_get_local_nodename(), sizeof(user_sock)-1);
208    user_sock[sizeof(user_sock)-1] = 0;
209    roar_mm_strlcat(user_sock, server, sizeof(user_sock)-1);
210    user_sock[sizeof(user_sock)-1] = 0;
211    obj  = strstr(user_sock, "::");
212    obj += 2;
213   }
214  }
215
216  if ( *obj == 0 ) {
217#ifdef DN_MAXOBJL
218   roar_mm_strlcat(user_sock, ROAR_DEFAULT_OBJECT, sizeof(user_sock)-1);
219   user_sock[sizeof(user_sock)-1] = 0;
220#else
221   ROAR_ERR("roar_connect_raw(*): size of DECnet object unknown.");
222#endif
223  }
224   ROAR_DBG("roar_connect_raw(*): user_sock='%s'", user_sock);
225 }
226
227 if ( port || is_decnet ) {
228  fh = roar_socket_connect(type, user_sock, port);
229  // restore the original string
230  user_sock[i] = ':';
231 } else {
232#if defined(ROAR_HAVE_STAT) && defined(ROAR_HAVE_H_SYS_STAT)
233  if ( user_sock[0] == '/' ) {
234   if ( stat(user_sock, &sockstat) == 0 ) {
235    if ( S_ISCHR(sockstat.st_mode) ) {
236     return open(user_sock, O_RDWR|O_NOCTTY, 0666);
237    }
238   }
239  }
240#endif
241  fh = roar_socket_connect(type, user_sock, ROAR_DEFAULT_PORT);
242 }
243
244 if ( fh == -1 )
245  return -1;
246
247 if ( roar_vio_open_fh_socket(con->viocon, fh) == -1 ) {
248  err = roar_error;
249#ifdef ROAR_TARGET_WIN32
250  closesocket(fh);
251#else
252  close(fh);
253#endif
254  roar_error = err;
255  return -1;
256 } else {
257  con->flags |= ROAR_CON_FLAGS_VIO;
258 }
259
260 roar_err_set(ROAR_ERROR_NONE);
261 return 0;
262}
263
264static int roar_connect_raw (struct roar_connection * con, const char * server, int flags, uint_least32_t timeout) {
265#ifdef ROAR_HAVE_LIBSLP
266 struct roar_libroar_config * config = roar_libroar_get_config();
267#endif
268#if defined(ROAR_HAVE_UNIX) || !defined(ROAR_TARGET_MICROCONTROLLER)
269 char user_sock[128];
270 char * roar_server;
271#endif
272#if defined(ROAR_HAVE_LIBSLP) || !defined(ROAR_TARGET_MICROCONTROLLER)
273 int i = 0;
274#endif
275#if !defined(ROAR_TARGET_WIN32) && !defined(ROAR_TARGET_MICROCONTROLLER)
276 struct passwd * pwd;
277#endif
278#ifdef ROAR_HAVE_LIBDNET
279 struct stat decnet_stat;
280#endif
281#ifdef ROAR_HAVE_LIBX11
282 struct roar_x11_connection * x11con;
283#endif
284#ifdef ROAR_HAVE_LIBSLP
285 struct roar_server * list;
286 int workarounds_store;
287#endif
288
289 roar_err_set(ROAR_ERROR_UNKNOWN);
290
291 if ( timeout != 0 ) {
292  roar_err_set(ROAR_ERROR_INVAL);
293  return -1;
294 }
295
296 if ( flags & ROAR_ENUM_FLAG_HARDNONBLOCK )
297  flags |= ROAR_ENUM_FLAG_NONBLOCK;
298
299
300 if ( server == NULL || *server == 0 )
301  server = roar_libroar_get_server();
302
303 if ( server == NULL || *server == 0 )
304  server = getenv("ROAR_SERVER");
305
306#ifdef ROAR_HAVE_LIBX11
307 if ( server == NULL || *server == 0 ) {
308  if ( (x11con = roar_x11_connect(NULL)) != NULL ) {
309   server = roar_x11_get_prop(x11con, "ROAR_SERVER");
310   roar_x11_disconnect(x11con);
311  }
312 }
313#endif
314
315#if !defined(ROAR_TARGET_WIN32) && !defined(ROAR_TARGET_MICROCONTROLLER)
316 if ( (server == NULL || *server == 0) && (i = readlink("/etc/roarserver", user_sock, sizeof(user_sock)-1)) != -1 ) {
317   user_sock[i] = 0;
318   server = user_sock;
319 }
320#endif
321
322 if ( server != NULL && !strcasecmp(server, "+slp") ) {
323  server = roar_slp_find_roard(0);
324  if ( server == NULL ) {
325   return -1;
326  }
327 }
328
329 if ( server == NULL || *server == 0 ) {
330  /* connect via defaults */
331
332#ifdef ROAR_HAVE_UNIX
333#ifndef ROAR_TARGET_MICROCONTROLLER
334  roar_server = getenv("HOME");
335#else
336  roar_server = NULL;
337#endif
338
339  if ( roar_server == NULL ) {
340#if !defined(ROAR_TARGET_WIN32) && !defined(ROAR_TARGET_MICROCONTROLLER)
341   if ( (pwd = getpwuid(getuid())) == NULL ) {
342    roar_server = "/NX-HOME-DIR";
343   } else {
344    roar_server = pwd->pw_dir;
345   }
346#else
347   roar_server = "/WIN32-SUCKS";
348#endif
349  }
350
351  snprintf(user_sock, sizeof(user_sock)-1, "%s/%s", roar_server, ROAR_DEFAULT_SOCK_USER);
352  user_sock[sizeof(user_sock)-1] = 0;
353
354  if ( _connect_server(con, user_sock, ROAR_SOCKET_TYPE_UNIX, flags, timeout) == 0 )
355   return 0;
356
357  if ( _connect_server(con, ROAR_DEFAULT_SOCK_GLOBAL, ROAR_SOCKET_TYPE_UNIX, flags, timeout) == 0 )
358   return 0;
359#endif
360
361  if ( _connect_server(con, ROAR_DEFAULT_HOSTPORT, ROAR_SOCKET_TYPE_TCP, flags, timeout) == 0 )
362   return 0;
363
364#ifdef ROAR_HAVE_LIBDNET
365  if ( stat(ROAR_PROC_NET_DECNET, &decnet_stat) == 0 ) {
366   if ( roar_socket_get_local_nodename() ) {
367    snprintf(user_sock, 79, "%s::%s", roar_socket_get_local_nodename(), ROAR_DEFAULT_OBJECT);
368    if ( _connect_server(con, user_sock, ROAR_SOCKET_TYPE_DECNET, flags, timeout) == 0 )
369     return 0;
370   }
371  }
372#endif
373
374  if ( _connect_server(con, "+abstract", ROAR_SOCKET_TYPE_UNKNOWN, flags, timeout) == 0 )
375   return 0;
376
377#ifdef ROAR_HAVE_LIBSLP
378 if ( !(config->workaround.workarounds & ROAR_LIBROAR_CONFIG_WAS_NO_SLP) &&
379      !(flags & ROAR_ENUM_FLAG_NONBLOCK) &&
380      !(flags & ROAR_ENUM_FLAG_LOCALONLY)
381    ) {
382  if ( (server = roar_slp_find_roard(0)) != NULL ) {
383   if ( _connect_server(con, server, ROAR_SOCKET_TYPE_UNKNOWN, 0, 0) == 0 )
384    return 0;
385
386   /* in case we can not connect to the server given this may be a cache problem,
387      we do a new lookup with the cache disabled in this case                     */
388   ROAR_WARN("roar_connect_raw(*): Can not connect to SLP located server, disabling cache");
389   if ( (server = roar_slp_find_roard(1)) != NULL )
390    if ( _connect_server(con, server, ROAR_SOCKET_TYPE_UNKNOWN, 0, 0) == 0 )
391     return 0;
392  }
393 }
394
395 workarounds_store = config->workaround.workarounds;
396 config->workaround.workarounds |= ROAR_LIBROAR_CONFIG_WAS_NO_SLP;
397 list = roar_enum_servers(flags, -1, -1);
398 config->workaround.workarounds = workarounds_store;
399 if ( list != NULL ) {
400  for (i = 0; list[i].server != NULL; i++) {
401   if ( _connect_server(con, list[i].server, ROAR_SOCKET_TYPE_UNKNOWN, 0, 0) == 0 ) {
402    roar_enum_servers_free(list);
403    return 0;
404   }
405  }
406  roar_enum_servers_free(list);
407 }
408#endif
409
410 return -1;
411
412 } else {
413  /* connect via (char*)server */
414  if ( _connect_server(con, server, ROAR_SOCKET_TYPE_UNKNOWN, flags, timeout) != 0 )
415   return -1;
416  return 0;
417 }
418
419 roar_err_set(ROAR_ERROR_NODEV);
420 ROAR_DBG("roar_connect_raw(*) = -1 // error=NODEV");
421 return -1;
422}
423
424int roar_connect     (struct roar_connection * con, const char * server, int flags, uint_least32_t timeout) {
425 struct roar_libroar_config * config = roar_libroar_get_config();
426
427 if ( con == NULL ) {
428  roar_err_set(ROAR_ERROR_FAULT);
429  return -1;
430 }
431
432 if ( roar_connect_none(con) == -1 )
433  return -1;
434
435 roar_err_set(ROAR_ERROR_UNKNOWN);
436 if ( roar_connect_raw(con, server, flags | config->serverflags, timeout) == -1 )
437  return -1;
438
439 // TODO: this should be moved to be within _connect_server() so it also stores server names of auto located servers.
440 if ( server != NULL ) {
441  con->server_name = roar_mm_strdup(server);
442 }
443
444 return 0;
445}
446
447int roar_connect_none (struct roar_connection * con) {
448 if ( con == NULL ) {
449  roar_err_set(ROAR_ERROR_INVAL);
450  return -1;
451 }
452
453 memset(con, 0, sizeof(struct roar_connection));
454 con->refc        = 1;
455 con->flags       = ROAR_CON_FLAGS_NONE;
456 con->version     = 0;
457 con->cb_userdata = NULL;
458 con->cb          = NULL;
459 con->server_stds = NULL;
460 con->server_name = NULL;
461
462 roar_err_init(&(con->errorframe));
463
464 con->viocon = &(con->viocon_store);
465
466// con->flags |= ROAR_CON_FLAGS_VIO;
467
468 roar_err_set(ROAR_ERROR_NONE);
469 return 0;
470}
471
472int roar_connect_vio (struct roar_connection * con, struct roar_vio_calls * vio) {
473 if ( con == NULL || vio == NULL ) {
474  roar_err_set(ROAR_ERROR_INVAL);
475  return -1;
476 }
477
478 if ( roar_connect_none(con) == -1 )
479  return -1;
480
481 con->viocon = vio;
482 con->flags |= ROAR_CON_FLAGS_VIO;
483
484 return -1;
485}
486
487int roar_connect_fh (struct roar_connection * con, int fh) {
488
489 if ( con == NULL || fh == -1 ) {
490  roar_err_set(ROAR_ERROR_INVAL);
491  return -1;
492 }
493
494 if ( roar_connect_none(con) == -1 )
495  return -1;
496
497 // specal hack to set an ilegal value used internaly in libroar:
498 if ( fh == -2 )
499  fh = -1;
500
501 if ( roar_vio_open_fh_socket(con->viocon, fh) != -1 ) {
502  con->flags |= ROAR_CON_FLAGS_VIO;
503 }
504
505 roar_err_set(ROAR_ERROR_NONE);
506 return 0;
507}
508
509int roar_get_connection_fh (struct roar_connection * con) {
510 int fh;
511
512 ROAR_DBG("roar_get_connection_fh(con=%p) = ?", con);
513
514 roar_debug_warn_sysio("roar_get_connection_fh", "roar_get_connection_vio2", NULL);
515
516 if ( con == NULL )
517  return -1;
518
519 ROAR_DBG("roar_get_connection_fh(con=%p) = ?", con);
520
521 if ( roar_vio_ctl(con->viocon, ROAR_VIO_CTL_GET_FH, &fh) == -1 )
522  return -1;
523
524 ROAR_DBG("roar_get_connection_fh(con=%p) = %i", con, fh);
525
526 return fh;
527}
528
529struct roar_vio_calls * roar_get_connection_vio2 (struct roar_connection * con) {
530 if ( con == NULL )
531  return NULL;
532
533 if ( con->flags & ROAR_CON_FLAGS_VIO )
534  return con->viocon;
535
536// TODO: try to open the VIO.
537
538 return NULL;
539}
540
541const char * roar_get_connection_server(struct roar_connection * con) {
542 if ( con == NULL ) {
543  roar_err_set(ROAR_ERROR_FAULT);
544  return NULL;
545 }
546
547 return con->server_name;
548}
549
550int roar_connectionref(struct roar_connection * con) {
551 if ( con == NULL ) {
552  roar_err_set(ROAR_ERROR_FAULT);
553  return -1;
554 }
555
556 con->refc++;
557
558 return 0;
559}
560
561int roar_connectionunref(struct roar_connection * con) {
562 struct roar_vio_calls * vio;
563 struct roar_message m;
564
565 if ( con == NULL ) {
566  roar_err_set(ROAR_ERROR_FAULT);
567  return -1;
568 }
569
570 con->refc--;
571
572 if ( con->refc )
573  return 0;
574
575 memset(&m, 0, sizeof(m));
576
577 m.datalen =  0;
578 m.stream  = -1;
579 m.pos     =  0;
580 m.cmd     = ROAR_CMD_QUIT;
581
582 roar_req(con, &m, NULL);
583
584 if ( (vio = roar_get_connection_vio2(con)) != NULL ) {
585  roar_vio_close(vio);
586 }
587
588 if ( con->server_stds != NULL ) {
589  roar_stds_free(con->server_stds);
590  con->server_stds = NULL;
591 }
592
593 if ( con->server_name != NULL ) {
594  roar_mm_free(con->server_name);
595  con->server_name = NULL;
596 }
597
598 if ( con->flags & ROAR_CON_FLAGS_FREESELF ) {
599  roar_mm_free(con);
600 } else {
601  roar_connect_fh(con, -2);
602 }
603
604 return 0;
605}
606
607int roar_set_connection_callback(struct roar_connection * con,
608                                 void (*cb)(struct roar_connection * con,
609                                            struct roar_message    * mes,
610                                            void                   * data,
611                                            void                   * userdata),
612                                 void * userdata) {
613 if ( con == NULL )
614  return -1;
615
616 con->cb       = cb;
617 con->cb_userdata = userdata;
618
619 return 0;
620}
621
622int roar_sync         (struct roar_connection * con) {
623 // wait for any non-client reqs
624 return roar_wait_msg(con, 0x0000, 0x8000);
625}
626
627int roar_wait_msg     (struct roar_connection * con, int16_t seq, int16_t seqmask) {
628 roar_err_set(ROAR_ERROR_NOSYS);
629 return -1;
630}
631
632int roar_noop         (struct roar_connection * con) {
633 struct roar_message mes;
634
635 if ( con == NULL ) {
636  roar_err_set(ROAR_ERROR_FAULT);
637  return -1;
638 }
639
640 memset(&mes, 0, sizeof(mes));
641
642 mes.cmd = ROAR_CMD_NOOP;
643 mes.stream = -1;
644
645 return roar_req3(con, &mes, NULL);
646}
647
648int roar_identify   (struct roar_connection * con, const char * name) {
649 struct roar_message mes;
650 uint32_t pid;
651 int max_len;
652
653 roar_err_set(ROAR_ERROR_UNKNOWN);
654
655 ROAR_DBG("roar_identify(*): try to identify myself...");
656
657 memset(&mes, 0, sizeof(mes));
658
659 mes.cmd    = ROAR_CMD_IDENTIFY;
660 mes.stream = -1;
661 mes.pos    =  0;
662
663 ROAR_DBG("roar_identify(*): name=%p", name);
664
665 if ( name == NULL )
666  name = "libroar client";
667
668 ROAR_DBG("roar_identify(*): name=%p", name);
669
670 max_len = roar_mm_strlen(name);
671 ROAR_DBG("roar_identify(*): strlen(name) = %i", max_len);
672
673 if ( max_len > (LIBROAR_BUFFER_MSGDATA - 5) )
674  max_len = LIBROAR_BUFFER_MSGDATA - 5;
675
676 mes.datalen = 5 + max_len;
677 mes.data[0] = 1;
678
679 pid = getpid();
680 mes.data[1] = (pid & 0xFF000000UL) >> 24;
681 mes.data[2] = (pid & 0x00FF0000UL) >> 16;
682 mes.data[3] = (pid & 0x0000FF00UL) >>  8;
683 mes.data[4] = (pid & 0x000000FFUL) >>  0;
684 ROAR_DBG("roar_identify(*): pid = %i", (int)pid);
685
686 strncpy(mes.data+5, name, max_len);
687
688 return roar_req3(con, &mes, NULL);
689}
690
691//ll
Note: See TracBrowser for help on using the repository browser.