[vala] posix: add send(2), sendto(2), and sendmsg(2)



commit e5d900889d6ef1a4fec784bf2607dea12232e8ae
Author: Michael 'Mickey' Lauer <mickey vanille-media de>
Date:   Thu Dec 23 15:11:38 2010 +0100

    posix: add send(2), sendto(2), and sendmsg(2)

 vapi/posix.vapi |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/vapi/posix.vapi b/vapi/posix.vapi
index 19f00c6..260f66a 100644
--- a/vapi/posix.vapi
+++ b/vapi/posix.vapi
@@ -1277,6 +1277,12 @@ namespace Posix {
     [CCode (cheader_filename = "sys/socket.h")]
 	public int listen (int sfd, int backlog);
     [CCode (cheader_filename = "sys/socket.h")]
+    public ssize_t send (int sockfd, void* buf, size_t len, int flags);
+    [CCode (cheader_filename = "sys/socket.h", sentinel = "")]
+    public ssize_t sendto (int sockfd, void* buf, size_t len, int flags, ...);
+    [CCode (cheader_filename = "sys/socket.h", sentinel = "")]
+    public ssize_t sendmsg (int sockfd, ...);
+    [CCode (cheader_filename = "sys/socket.h")]
     public int setsockopt(int sockfd, int level, int optname, void* optval, socklen_t optlen);
     [CCode (cheader_filename = "sys/socket.h")]
 	public int socket (int domain, int type, int protocol);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]