(我是网络编程的新手)我想使用n2n创建由连接到Internet的各种计算机组成的网络,我希望它们使用TCP / UDP等协议交换数据。 我已经开始issue on their github,但似乎他们已停止回复。 请帮助我
我已经尝试在两台机器上执行其问题中提到的内置函数“ quick_edge_init”,然后尝试使用标准udp交换消息,其中一个作为客户端,另一个作为服务器。
两个节点上的Quick_edge_init参数
节点1
char *device_name = (char*)"n2n0";
char *network_name = (char*)"network";
char *secret_key = (char*)"secretkey";
char *my_mac_address = (char*)"DE:AD:BE:EF:01:10";
char *my_ipv4_addr = (char*)"192.168.100.1";
char *supernode = (char*)"supernode.ntop.org:7777";
int keep_on_running = 1;
节点2
char *device_name = (char*)"n2n0";
char *network_name = (char*)"network";
char *secret_key = (char*)"secretkey";
char *my_mac_address = (char*)"DE:AD:BE:EF:01:10";
char *my_ipv4_addr = (char*)"192.168.100.2";
char *supernode = (char*)"supernode.ntop.org:7777";
int keep_on_running = 1;
我只希望由我的程序启动的该网络上的节点交换消息