Lines Matching full:socket
3 #include <sys/socket.h>
22 * @brief Provides encapsulation for UDP socket operations like Read, Peek,
38 * Initialize the IPMI socket object with the socket descriptor
40 * @param [in] pointer to a boost::asio udp socket object
44 explicit Channel(std::shared_ptr<boost::asio::ip::udp::socket> socket) : in Channel() argument
45 socket(socket) in Channel()
66 * socket
132 * Reads the data available on the socket
136 * available on the socket and return code is 0.
144 std::vector<uint8_t> packet(socket->available()); in read()
150 ssize_t bytesReceived = recvmsg(socket->native_handle(), &msg, 0); in read()
185 * Writes the data in the vector to the socket
188 * The vector would be the buffer of data to write to the socket.
221 int ret = sendmsg(socket->native_handle(), &msg, 0); in write()
230 * @brief Returns file descriptor for the socket
234 return socket->native_handle(); in getHandle()
238 std::shared_ptr<boost::asio::ip::udp::socket> socket; member in udpsocket::Channel