summaryrefslogtreecommitdiff
path: root/librabbitmq/win32/socket.c
Commit message (Collapse)AuthorAgeFilesLines
* Move amqp_os_socket* funcs to amqp_socket.h/cAlan Antonuk2013-06-131-116/+0
| | | | | Doing this for code clarity, as its easier to see what the issues are when you have all implementations in one file
* Return error on socket lib init failureAlan Antonuk2013-06-131-1/+1
| | | | | Winsock2 requires calling a function to initialize the socket library. This call can fail. Return an error code to the user if it does.
* Expose public error-code interfaceAlan Antonuk2013-06-131-3/+3
| | | | | | | | | | 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.
* Fixes to compile it on Win32/MSVCAlan Antonuk2013-04-171-1/+1
|
* FIX/Win32: properly munge amqp_socket_initAlan Antonuk2013-04-171-1/+1
| | | | | | Properly munge the error code from amqp_socket_init on Win32, previously it was not munged correctly and an error code could be mistaken as a sockfd
* Fix Win32 socket functionsAlan Antonuk2013-04-171-4/+3
|
* Fix code formatting to match the rest of the libAlan Antonuk2013-04-171-2/+2
|
* Changing return type on amqp_socket_writev to match fn ptr typeAlan Antonuk2013-04-091-1/+1
|
* Add plumbing for SSL/TLS supportMichael Steinert2013-04-091-4/+13
| | | | | | | | | | | | | | | 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-081-0/+3
|
* Formatted source code with astyle utiltyAlan Antonuk2013-04-081-28/+31
|
* Adding vim modelines to help with source formattingAlan Antonuk2013-04-051-0/+1
|
* Fix for issue #38: Use FormatMessageA instead of FormatMessageAlan Antonuk2012-09-041-1/+1
| | | | | | FormatMessage might be #defined to be FormatMessageW in case UNICODE is #defined, expliciting calling the ascii version of the function corrects this in all cases
* Cleanup Win32 artifactsMichael Steinert2012-05-171-0/+101
1. Standardize on `win32` vs `windows/win32` 2. Move `msinttypes` into platform directory Signed-off-by: Michael Steinert <mike.steinert@gmail.com>