socket_node.cpp
Go to the documentation of this file.
1 
34 #include <boost/asio.hpp>
35 #include <boost/bind.hpp>
36 #include <boost/thread.hpp>
37 
38 #include <ros/ros.h>
39 
41 
42 
43 int main(int argc, char* argv[])
44 {
45  ros::init(argc, argv, "rosserial_server_socket_node");
46 
47  int port;
48  ros::param::param<int>("~port", port, 11411);
49 
50  boost::asio::io_service io_service;
51  rosserial_server::TcpServer<> tcp_server(io_service, port);
52 
53  ROS_INFO_STREAM("Listening for rosserial TCP connections on port " << port);
54  io_service.run();
55  return 0;
56 }
TCP server for rosserial.
int main(int argc, char *argv[])
Definition: socket_node.cpp:43
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
#define ROS_INFO_STREAM(args)


rosserial_server
Author(s): Mike Purvis
autogenerated on Fri Jun 7 2019 22:02:58