Namespaces | Defines | Typedefs | Functions
io.h File Reference
#include <string>
#include "common.h"
#include <poll.h>
#include <sys/poll.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <unistd.h>
#include <netinet/in.h>
#include <netinet/tcp.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.

Namespaces

namespace  ros

Defines

#define ROS_INVALID_SOCKET   ((int) -1)
#define ROS_SOCKETS_ASYNCHRONOUS_CONNECT_RETURN   EINPROGRESS
#define ROS_SOCKETS_SHUT_RDWR   SHUT_RDWR /* Used by ::shutdown() */

Typedefs

typedef int ros::signal_fd_t
typedef int ros::socket_fd_t
typedef struct pollfd ros::socket_pollfd

Functions

void ros::close_signal_pair (signal_fd_t signal_pair[2])
ROSCPP_DECL int ros::close_socket (socket_fd_t &socket)
 Close the socket.
ROSCPP_DECL int ros::create_signal_pair (signal_fd_t signal_pair[2])
ROSCPP_DECL int ros::last_socket_error ()
ROSCPP_DECL bool ros::last_socket_error_is_would_block ()
ROSCPP_DECL const char * ros::last_socket_error_string ()
ROSCPP_DECL int ros::poll_sockets (socket_pollfd *fds, nfds_t nfds, int timeout)
 A cross platform polling function for sockets.
ssize_t ros::read_signal (const signal_fd_t &signal, void *buffer, const size_t &nbyte)
ROSCPP_DECL int ros::set_non_blocking (socket_fd_t &socket)
ssize_t ros::write_signal (const signal_fd_t &signal, const void *buffer, const size_t &nbyte)

Define Documentation

#define ROS_INVALID_SOCKET   ((int) -1)

Definition at line 107 of file io.h.

#define ROS_SOCKETS_ASYNCHRONOUS_CONNECT_RETURN   EINPROGRESS

Definition at line 108 of file io.h.

#define ROS_SOCKETS_SHUT_RDWR   SHUT_RDWR /* Used by ::shutdown() */

Definition at line 106 of file io.h.



roscpp
Author(s): Morgan Quigley, Josh Faust, Brian Gerkey, Troy Straszheim
autogenerated on Thu Jun 6 2019 21:10:05