~ubuntu-branches/ubuntu/vivid/syslog-ng/vivid-proposed

« back to all changes in this revision

Viewing changes to modules/afamqp/rabbitmq-c/librabbitmq/win32/socket.h

  • Committer: Package Import Robot
  • Author(s): Gergely Nagy, Gergely Nagy
  • Date: 2013-11-04 15:27:37 UTC
  • mfrom: (1.3.12)
  • Revision ID: package-import@ubuntu.com-20131104152737-mqh6eqtna2xk97jq
Tags: 3.5.1-1
[ Gergely Nagy <algernon@madhouse-project.org> ]
* New upstream release.
  + Support auto-loading modules (Closes: #650814)
  + The SMTP module is available in syslog-ng-mod-smtp (Closes: #722746)
  + New modules: amqp, geoip, stomp, redis and smtp.
  + Multi-line input support (indented multiline and regexp-based)
  + Template type hinting for the MongoDB destination and $(format-json)
  + Support for unit suffixes in the configuration file
  + New filters, template functions and other miscellaneous changes
* New (team) maintainer, Laszlo Boszormenyi, Attila Szalay and myself
  added to Uploaders.
* Ship /var/lib/syslog-ng in the syslog-ng-core package, instead of
  creating it in the init script. Thanks Michael Biebl
  <biebl@debian.org> for the report & assistance. (Closes: #699942, #719910)
* Use dh-systemd for proper systemd-related maintainer scripts. Based on
  a patch by Michael Biebl <biebl@debian.org>. (Closes: #713982,
  #690067)
* Do not wait for syslog-ng to settle down during installation / update.
  This also fixes installing via debootstrap and a fake
  start-stop-daemon. (Closes: #714254)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef librabbitmq_windows_socket_h
 
2
#define librabbitmq_windows_socket_h
 
3
 
 
4
/*
 
5
 * ***** BEGIN LICENSE BLOCK *****
 
6
 * Version: MIT
 
7
 *
 
8
 * Portions created by VMware are Copyright (c) 2007-2012 VMware, Inc.
 
9
 * All Rights Reserved.
 
10
 *
 
11
 * Portions created by Tony Garnock-Jones are Copyright (c) 2009-2010
 
12
 * VMware, Inc. and Tony Garnock-Jones. All Rights Reserved.
 
13
 *
 
14
 * Permission is hereby granted, free of charge, to any person
 
15
 * obtaining a copy of this software and associated documentation
 
16
 * files (the "Software"), to deal in the Software without
 
17
 * restriction, including without limitation the rights to use, copy,
 
18
 * modify, merge, publish, distribute, sublicense, and/or sell copies
 
19
 * of the Software, and to permit persons to whom the Software is
 
20
 * furnished to do so, subject to the following conditions:
 
21
 *
 
22
 * The above copyright notice and this permission notice shall be
 
23
 * included in all copies or substantial portions of the Software.
 
24
 *
 
25
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 
26
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 
27
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 
28
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
 
29
 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
 
30
 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 
31
 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 
32
 * SOFTWARE.
 
33
 * ***** END LICENSE BLOCK *****
 
34
 */
 
35
 
 
36
#include <winsock2.h>
 
37
#include <WS2tcpip.h>
 
38
 
 
39
/* same as WSABUF */
 
40
struct iovec {
 
41
        u_long iov_len;
 
42
        void *iov_base;
 
43
};
 
44
 
 
45
int
 
46
amqp_socket_init(void);
 
47
 
 
48
#define amqp_socket_socket socket
 
49
#define amqp_socket_close closesocket
 
50
 
 
51
int
 
52
amqp_socket_setsockopt(int sock, int level, int optname, const void *optval,
 
53
                       size_t optlen);
 
54
 
 
55
int
 
56
amqp_socket_writev(int sock, struct iovec *iov, int nvecs);
 
57
 
 
58
int
 
59
amqp_socket_error(void);
 
60
 
 
61
#ifndef MSG_NOSIGNAL
 
62
# define MSG_NOSIGNAL 0x0
 
63
#endif
 
64
 
 
65
#endif