complete rewrite
This commit is contained in:
parent
b60e3a0ef6
commit
8a717a2b2e
41 changed files with 2625 additions and 1255 deletions
11
engine/net/testclient.c
Normal file
11
engine/net/testclient.c
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#include <fishsoup.h>
|
||||
|
||||
void on(fishsoup_client_t* client, fishsoup_packet_t* pkt) {
|
||||
if(pkt->header.type == FISHSOUP_PACKET_USER) printf("Received: %s\n", pkt->data);
|
||||
}
|
||||
|
||||
int main() {
|
||||
fishsoup_client_t* client = fishsoup_client("127.0.0.1", 0);
|
||||
fishsoup_client_on_packet(client, on);
|
||||
while(fishsoup_client_poll(client) >= 0);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue