C AMQP Protocol Engine API  0.7
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
io.h File Reference
#include <proton/import_export.h>
#include <proton/error.h>
#include <sys/types.h>
#include <proton/type_compat.h>
Include dependency graph for io.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PN_INVALID_SOCKET   (-1)
 

Typedefs

typedef int pn_socket_t
 
typedef struct pn_io_t pn_io_t
 

Functions

PN_EXTERN pn_io_tpn_io (void)
 
PN_EXTERN void pn_io_free (pn_io_t *io)
 
PN_EXTERN pn_error_tpn_io_error (pn_io_t *io)
 
PN_EXTERN pn_socket_t pn_connect (pn_io_t *io, const char *host, const char *port)
 
PN_EXTERN pn_socket_t pn_listen (pn_io_t *io, const char *host, const char *port)
 
PN_EXTERN pn_socket_t pn_accept (pn_io_t *io, pn_socket_t socket, char *name, size_t size)
 
PN_EXTERN void pn_close (pn_io_t *io, pn_socket_t socket)
 
PN_EXTERN ssize_t pn_send (pn_io_t *io, pn_socket_t socket, const void *buf, size_t size)
 
PN_EXTERN ssize_t pn_recv (pn_io_t *io, pn_socket_t socket, void *buf, size_t size)
 
PN_EXTERN int pn_pipe (pn_io_t *io, pn_socket_t *dest)
 
PN_EXTERN ssize_t pn_read (pn_io_t *io, pn_socket_t socket, void *buf, size_t size)
 
PN_EXTERN ssize_t pn_write (pn_io_t *io, pn_socket_t socket, const void *buf, size_t size)
 
PN_EXTERN bool pn_wouldblock (pn_io_t *io)
 

Macro Definition Documentation

#define PN_INVALID_SOCKET   (-1)

Typedef Documentation

typedef struct pn_io_t pn_io_t
typedef int pn_socket_t

Function Documentation

PN_EXTERN pn_socket_t pn_accept ( pn_io_t io,
pn_socket_t  socket,
char *  name,
size_t  size 
)
PN_EXTERN void pn_close ( pn_io_t io,
pn_socket_t  socket 
)
PN_EXTERN pn_socket_t pn_connect ( pn_io_t io,
const char *  host,
const char *  port 
)
PN_EXTERN pn_io_t* pn_io ( void  )
PN_EXTERN pn_error_t* pn_io_error ( pn_io_t io)
PN_EXTERN void pn_io_free ( pn_io_t io)
PN_EXTERN pn_socket_t pn_listen ( pn_io_t io,
const char *  host,
const char *  port 
)
PN_EXTERN int pn_pipe ( pn_io_t io,
pn_socket_t dest 
)
PN_EXTERN ssize_t pn_read ( pn_io_t io,
pn_socket_t  socket,
void *  buf,
size_t  size 
)
PN_EXTERN ssize_t pn_recv ( pn_io_t io,
pn_socket_t  socket,
void *  buf,
size_t  size 
)
PN_EXTERN ssize_t pn_send ( pn_io_t io,
pn_socket_t  socket,
const void *  buf,
size_t  size 
)
PN_EXTERN bool pn_wouldblock ( pn_io_t io)
PN_EXTERN ssize_t pn_write ( pn_io_t io,
pn_socket_t  socket,
const void *  buf,
size_t  size 
)