This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
zhangyang-libzt/test/selftest.cpp

13 lines
289 B
C++
Raw Normal View History

2021-01-26 18:04:03 -08:00
/**
* Demonstrate that we can compile, link, and run an application
* with libzt and successfully get an error from the socket API.
*/
#include <cstdlib>
#include <ZeroTierSockets.h>
int main()
{
return zts_socket(0,0,0) != -2; // We expect -2 from an uninitialized libzt instance
}