You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, thanks for your great project, but I tested and found that fail to connect mNetAssist.deb or TcpUdp.exe, but success to connect server program was implement enet.
Hi, thanks for your great project, but I tested and found that fail to connect mNetAssist.deb or TcpUdp.exe, but success to connect server program was implement enet.
client code
`#include
#define ENET_DEBUG
#include <enet/enet.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
using namespace std;
void run()
{
ENetHost * client;
client = enet_host_create (NULL /* create a client host /,
1 / only allow 1 outgoing connection /,
2 / allow up 2 channels to be used, 0 and 1 /,
0 / assume any amount of incoming bandwidth /,
0 / assume any amount of outgoing bandwidth */);
if (client == NULL)
{
fprintf (stderr,
"An error occurred while trying to create an ENet client host.\n");
exit (EXIT_FAILURE);
}
}
int main()
{
if (enet_initialize () != 0)
{
fprintf (stderr, "An error occurred while initializing ENet.\n");
return EXIT_FAILURE;
}
run();
}`
Hope someone can give me some advice, thanks.
The text was updated successfully, but these errors were encountered: