Function OS1::do_tcp_cmd
Defined in File OS1.hpp
Function Documentation
-
inline bool OS1::do_tcp_cmd(int sock_fd, const std::vector<std::string> &cmd_tokens, std::string &res)
Conduct a specific TCP socket command
- Parameters:
sock_fd – Socket for connections iwth data
cmd_tokens – command tokens
res – result string of packet data
- Returns:
bool If valid tcp command