tesses.broadcast/libbroadcast/broadcastclient.c

14 lines
326 B
C
Raw Normal View History

2024-03-26 19:34:54 +00:00
#include <tessesbroadcast.h>
#include <stdio.h>
bool sleepfunc(void* user,int times)
{
return true;
}
void broadcast_client_cb(broadcast_device_t* dev)
{
printf("%s: %s\n",dev->name,dev->url);
}
int main(int argc, char** argv)
{
broadcast_client("Test",BROADCAST_DEFAULT_PORT,NULL,sleepfunc,broadcast_client_cb);
}