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
428 B
23 lines
428 B
//
|
|
// Created by MightyPork on 2017/10/15.
|
|
//
|
|
|
|
#ifndef TF_DEMO_H
|
|
#define TF_DEMO_H
|
|
|
|
#include <stdbool.h>
|
|
#include "../TinyFrame.h"
|
|
#include "utils.h"
|
|
|
|
#define PORT 9798
|
|
|
|
/** Sleep and wait for ^C */
|
|
void demo_sleep(void);
|
|
|
|
/** Init server - DOES NOT init TinyFrame! */
|
|
void demo_init(TF_Peer peer);
|
|
|
|
/** Disconnect client from the server - can be called by a server-side callback */
|
|
void demo_disconn(void);
|
|
|
|
#endif //TF_DEMO_H
|
|
|