BaseBYomRishon project :Connexions

Ce projet a pour but de stocker et échanger des nombres aux propriétés mathématiques particulières en peer to peer.

L’url du projet https://sourceforge.net/projects/basebyomrishon/

L’article ici en englais permet de manipuler les deux composants d’échanges client serveur de façon frugal. Cet article est amené à évoluer sur l’url https://sourceforge.net/p/basebyomrishon/wiki/Home/


The ip of the server can be known bye the commands :
– on linux ifconfig
– on windows ipconfig
In the list ipv6 xx:xx:xx:xx:xx: preferably

Server side

Run the server on port 7777
java -cp /home/o/yom1/code/Cnx/dist/Cnx.jar fr.businessintegrator.cnx.Server 7777

For local test use 127.0.0.1 as server ip.
Example on ubuntu, the ifconfig command give :

wlp6s0: flags=4163<up,broadcast,running,multicast> mtu 1500
inet xxx.xxx.0.24 netmask 255.255.255.0 broadcast xxx.xxx.0.255
inet6 xxxx::203b:98ab:1ffa:xxx prefixlen 64 scopeid 0x20<link>
inet6 xxxx:e35:39c3:6ac0:a89f:155b:6ecc:xxx prefixlen 64 scopeid 0x0<global>
inet6 xxxx:e35:39c3:6ac0:e54a:b43a:6f79:c2e4 prefixlen 64 scopeid 0x0<global>
ether xx:xx:xx:xx:xx:xx txqueuelen 1000 (Ethernet)
RX packets 8698 bytes 7494152 (7.4 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 7686 bytes 1216497 (1.2 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0</global></global></up,broadcast,running,multicast>

The server side can promote its ip adress to its clients. time.

Client Side

The command to check your ip is ping xxxx::203b:98ab:1ffa:xxx

Gives the time in milliseconds on the last column result to calibrate your timeout.
64 bytes from xxxx::203b:98ab:xxxx:e6a2%wlp6s0: icmp_seq=1 ttl=64 time=0.101 ms
I choose a time out multiplication by 100000 10100 ms

Il the server side is running on port 7777 and i wnat to send a little file.
fichier.txt
Hello this is a file

java -cp /home/o/yom1/code/ClientCnx/dist/ClientCnx.jar fr.businessintegrator.cnx.cli.Client xxxx::203b:98ab:xxxx:e6a2 7777 10100 fichier.txt