From 64624500596ec4150dcd422ac7ba9cc9958a529d Mon Sep 17 00:00:00 2001 From: Mika Liljeberg Date: Mon, 4 Oct 2010 15:30:01 +0300 Subject: gisi: Add sendto methods to GIsiClient Add g_isi_vsendto() and g_isi_sendto() methods for sending messages to an arbitrary Phonet address. --- gisi/client.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'gisi/client.h') diff --git a/gisi/client.h b/gisi/client.h index e8ba9b36..d21569f4 100644 --- a/gisi/client.h +++ b/gisi/client.h @@ -29,6 +29,7 @@ extern "C" { #include #include #include +#include "phonet.h" struct _GIsiClient; typedef struct _GIsiClient GIsiClient; @@ -73,11 +74,25 @@ GIsiRequest *g_isi_request_vmake(GIsiClient *client, const struct iovec *iov, size_t iovlen, unsigned timeout, GIsiResponseFunc func, void *opaque); +GIsiRequest *g_isi_sendto(GIsiClient *client, + struct sockaddr_pn *dst, + const void *data, size_t len, + unsigned timeout, + GIsiResponseFunc func, void *opaque, + GDestroyNotify notify); + GIsiRequest *g_isi_send(GIsiClient *client, const void *data, size_t len, unsigned timeout, GIsiResponseFunc func, void *opaque, GDestroyNotify notify); +GIsiRequest *g_isi_vsendto(GIsiClient *client, + struct sockaddr_pn *dst, + const struct iovec *iov, size_t iovlen, + unsigned timeout, + GIsiResponseFunc func, void *opaque, + GDestroyNotify notify); + GIsiRequest *g_isi_vsend(GIsiClient *client, const struct iovec *iov, size_t iovlen, unsigned timeout, -- cgit v1.2.3