Improve documentation and error reporting

This commit is contained in:
Joseph Henry
2020-04-17 11:35:43 -07:00
parent 7c736e45af
commit 9eefbd55d3
5 changed files with 383 additions and 498 deletions

View File

@@ -548,7 +548,8 @@ JNIEXPORT jint JNICALL Java_com_zerotier_libzt_ZeroTier_recvfrom(
ssize_t zts_recvmsg(int fd, struct msghdr *msg, int flags)
{
return (!_run_service || !_run_lwip_tcpip) ? ZTS_ERR_SERVICE : -1; // Not currently implemented by stack
// Not currently implemented by stack
return (!_run_service || !_run_lwip_tcpip) ? ZTS_ERR_SERVICE : ZTS_ERR_GENERAL;
}
#ifdef SDK_JNI
#endif