13 if (ret == ReturnStatuses::INIT_FAILED)
14 return "Initialization of the network interface failed.";
15 else if (ret == ReturnStatuses::BAD_PARAM)
16 return "A bad parameter was provided to the network interface during initalization.";
17 else if (ret == ReturnStatuses::SOCKET_ERROR)
18 return "A socket error was encountered.";
19 else if (ret == ReturnStatuses::SOCKET_CLOSED)
20 return "Socket is not currently open.";
21 else if (ret == ReturnStatuses::NO_MESSAGES_RECEIVED)
22 return "No messages were received on the interface.";
23 else if (ret == ReturnStatuses::READ_FAILED)
24 return "A read operation failed on the network interface.";
25 else if (ret == ReturnStatuses::WRITE_FAILED)
26 return "A write operation failed on the network interface.";
27 else if (ret == ReturnStatuses::CLOSE_FAILED)
28 return "Closing the network failed.";
30 return "Undefined error.";