rebranding

This commit is contained in:
Nishi 2026-01-07 04:31:01 +09:00
commit 08d2c96590
Signed by: nishi
GPG key ID: 27EF69B208EB9343
10 changed files with 157 additions and 221 deletions

View file

@ -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);
}