rebranding
This commit is contained in:
parent
8a717a2b2e
commit
08d2c96590
10 changed files with 157 additions and 221 deletions
|
|
@ -1,11 +1,11 @@
|
|||
#include <fishsoup.h>
|
||||
#include <gbnet.h>
|
||||
|
||||
void on(fishsoup_client_t* client, fishsoup_packet_t* pkt) {
|
||||
if(pkt->header.type == FISHSOUP_PACKET_USER) printf("Received: %s\n", pkt->data);
|
||||
void on(gbnet_client_t* client, gbnet_packet_t* pkt) {
|
||||
if(pkt->header.type == NET_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);
|
||||
gbnet_client_t* client = gbnet_client("127.0.0.1", 0);
|
||||
gbnet_client_on_packet(client, on);
|
||||
while(gbnet_client_poll(client) >= 0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue