You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
509 B
22 lines
509 B
// libztHelloWorld - Simple demo with libzt.lib and libzt.dll |
|
|
|
#include "stdafx.h" |
|
#include <Windows.h> |
|
#include <stdio.h> |
|
#include <windows.h> |
|
#include <strsafe.h> |
|
|
|
#include "..\..\..\..\include\libzt.h" |
|
|
|
int main() |
|
{ |
|
printf("waiting for libzt to come online...\n"); |
|
zts_startjoin("config_path", "17d709436c2c5367"); |
|
printf("started. now performing a socket call\n"); |
|
int fd = zts_socket(AF_INET, SOCK_STREAM, 0); |
|
printf("fd=%d\n", fd); |
|
// zts_connect(), zts_bind(), etc... |
|
zts_stop(); |
|
return 0; |
|
} |
|
|
|
|