1
0
mirror of https://gitlab.com/obbart/universal_robots_ros_driver.git synced 2026-04-10 18:10:47 +02:00

Documented URStream and TCPSocket

This commit is contained in:
Felix Mauch
2019-04-09 14:39:34 +02:00
committed by Tristan Schnell
parent 740d798a24
commit 59ae3bcd69
3 changed files with 116 additions and 32 deletions

View File

@@ -144,7 +144,7 @@ bool TCPSocket::read(char* character)
return read((uint8_t*)character, 1, read_chars);
}
bool TCPSocket::read(uint8_t* buf, size_t buf_len, size_t& read)
bool TCPSocket::read(uint8_t* buf, const size_t buf_len, size_t& read)
{
read = 0;
@@ -165,7 +165,7 @@ bool TCPSocket::read(uint8_t* buf, size_t buf_len, size_t& read)
return true;
}
bool TCPSocket::write(const uint8_t* buf, size_t buf_len, size_t& written)
bool TCPSocket::write(const uint8_t* buf, const size_t buf_len, size_t& written)
{
written = 0;