Skip to content

Commit

Permalink
port: net: log protocol name
Browse files Browse the repository at this point in the history
  • Loading branch information
fgsfdsfgs committed Dec 28, 2023
1 parent 49129dd commit 54fbd8b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions port/src/net/net.c
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ s32 netStartServer(u16 port, s32 maxclients)
g_NetNextUpdate = 0;
g_NetNextSyncId = 1;

sysLogPrintf(LOG_NOTE, "NET: using protocol version %d", NET_PROTOCOL_VER);
sysLogPrintf(LOG_NOTE, "NET: created server on port %u", port);

return 0;
Expand Down Expand Up @@ -404,6 +405,7 @@ s32 netStartClient(const char *addr)
// for now use last client struct
g_NetLocalClient = &g_NetClients[NET_MAX_CLIENTS];

sysLogPrintf(LOG_NOTE, "NET: using protocol version %d", NET_PROTOCOL_VER);
sysLogPrintf(LOG_NOTE, "NET: connecting to %s...", addr);

g_NetLocalClient->peer = enet_host_connect(g_NetHost, &g_NetRemoteAddr, NETCHAN_COUNT, NET_PROTOCOL_VER);
Expand Down

0 comments on commit 54fbd8b

Please sign in to comment.