summaryrefslogtreecommitdiff
path: root/librabbitmq/unix
Commit message (Collapse)AuthorAgeFilesLines
* Move amqp_os_socket* funcs to amqp_socket.h/cAlan Antonuk2013-06-132-175/+0
| | | | | Doing this for code clarity, as its easier to see what the issues are when you have all implementations in one file
* Expose public error-code interfaceAlan Antonuk2013-06-131-2/+2
| | | | | | | | | | Publicly define the error codes returned from the various public API functions. The error codes are defined in the amqp_status_enum and are all negative in value to work with functions that return positive values. OS and SSL specific codes are no longer munged into the error code, as it is unlikely for that information to be useful to library users.
* Updating license header in new filesAlan Antonuk2013-04-171-0/+22
|
* Fix code formatting to match the rest of the libAlan Antonuk2013-04-171-4/+4
|
* Adding vim modelines to new filesAlan Antonuk2013-04-171-0/+1
|
* close() requires unistd.h on UnixMichael Steinert2013-04-091-0/+1
| | | | Signed-off-by: Michael Steinert <mike.steinert@gmail.com>
* Propose new socket APIMichael Steinert2013-04-092-11/+7
| | | | | | | | | The general idea is to have a non-instantiable socket base class. Connection-specific sub-classes provide a constructor and methods for modifying connection parameters. `amqp_socket_close()` is the destructor. Signed-off-by: Michael Steinert <mike.steinert@gmail.com>
* Adding support for OpenSSL in multithreaded applicationsAlan Antonuk2013-04-091-0/+6
|
* Changing return type on amqp_socket_writev to match fn ptr typeAlan Antonuk2013-04-092-2/+2
|
* Add plumbing for SSL/TLS supportMichael Steinert2013-04-092-11/+34
| | | | | | | | | | | | | | | This change abstracts out the networking functions so that the user can provide an SSL/TLS implementation. Callback functions replace `writev()`, `send()`, and `recv()` (there is also a callback for error reporting). The default interface remains unchanged. If the user wants to create a SSL/TLS connection they first negotiate the connection and then use the new function `amqp_set_sockfd_full()` to provide the networking implementation for their SSL/TLS library. The user may provide an optional pointer to data that is passed through to the networking functions. Signed-off-by: Michael Steinert <mike.steinert@gmail.com>
* Updating license yearAlan Antonuk2013-04-082-0/+6
|
* Formatted source code with astyle utiltyAlan Antonuk2013-04-081-17/+18
|
* Adding vim modelines to help with source formattingAlan Antonuk2013-04-052-0/+2
|
* Fixes #102: SIGPIPE not disabled on Mac OS X/*BSDAlan Antonuk2013-03-061-4/+4
| | | | | | The order of preprocessor defines in librabbitmq/unix/socket.h prevents DISABLE_SIGPIPE_WITH_SETSOCKOPT from ever being defined, and thus SIGPIPE not being disabled correctly. This fixes that error.
* Correct sys/types.h sys/socket.h include order on *BSDAlan Antonuk2012-10-042-5/+2
| | | | | sys/types.h must be included before sys/socket.h on certain older BSD variants
* Disable sigpipe on Mac OSXissue23Alan Antonuk2012-06-061-0/+8
| | | | | Use setsockopt(SO_NOSIGPIPE) on platforms that don't have MSG_NOSIGNAL and do have SO_NOSIGPIPE
* Set default visibility to hidden & enable a couple more warningsMichael Steinert2012-05-172-21/+28
| | | | | | | | | | | | | | Enable the following GCC options: 1. -Wstrict-prototypes 2. -Wcast-align 3. -fno-common 4. -fvisibility=hidden This commit also includes some general cleanup of header files (mostly for readability). Signed-off-by: Michael Steinert <mike.steinert@gmail.com>
* Add config.h header guardsMichael Steinert2012-05-171-0/+2
| | | | Signed-off-by: Michael Steinert <mike.steinert@gmail.com>
* Automated relicensing of source files MPL/GPL -> MITMarek Majkowski2012-04-122-55/+43
|
* Update copyright 2012Emile Joubert2012-02-022-2/+2
|
* Add missing header (fixes build on OpenBSD).bug24048Piotr Sikora2011-04-111-0/+1
|
* Update copyright noticesDavid Wragg2011-03-012-38/+14
| | | | And generally bring debian/copyright up to date.
* config.h defines _GNU_SOURCE and is therefore all we need to includeDaniel Schauenberg2011-02-031-4/+2
|
* move strdup to separate file and add guardsDaniel Schauenberg2011-02-021-6/+4
|
* Pass "-ansi -pedantic" to gcc, so it tells us when we stray from C90David Wragg2010-10-211-1/+8
| | | | | | | | And fix up the resulting warnings We don't use "-ansi -pedantic" in the tools dir, because that code relies on libpopt, and so is unlikely ever to work with the Microsoft compiler anyway.
* Fix "const char *" to "void *" conversion warningsDavid Wragg2010-07-281-1/+1
| | | | | | | | Functions returning a heap-allocated string should return a "char *", not a "const char *": Because the result is heap-allocated and becomes the responsibility of the caller, it is certainly modifiable. And the pointer will likely get passed to free(), triggering a conversion warning from gcc. So remove all the relevant consts.
* Convert the socket_ prefix to amqp_socket_David Wragg2010-07-262-7/+7
|
* Eliminate the socket_ prefix on connectDavid Wragg2010-07-261-1/+0
| | | | To be consistent with the reduced consistency.
* Replace socket_{read,write} with recv and sendDavid Wragg2010-07-261-2/+0
|
* Merge default into bug22825David Wragg2010-07-261-0/+2
|
* A Windows port, using MinGW/MSYSDavid Wragg2010-05-302-0/+165