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.
23 lines
509 B
23 lines
509 B
|
9 years ago
|
// libztHelloWorld - Simple demo with libzt.lib and libzt.dll
|
||
|
|
|
||
|
|
#include "stdafx.h"
|
||
|
|
#include <Windows.h>
|
||
|
|
#include <stdio.h>
|
||
|
|
#include <windows.h>
|
||
|
|
#include <strsafe.h>
|
||
|
|
|
||
|
9 years ago
|
#include "..\..\..\..\include\libzt.h"
|
||
|
9 years ago
|
|
||
|
|
int main()
|
||
|
|
{
|
||
|
|
printf("waiting for libzt to come online...\n");
|
||
|
9 years ago
|
zts_startjoin("config_path", "17d709436c2c5367");
|
||
|
9 years ago
|
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;
|
||
|
|
}
|
||
|
|
|