Commit Graph

72 Commits

Author SHA1 Message Date
Yohann D'ANELLO a1b93e851e
The nickname of the current user is colored
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2020-12-21 16:35:50 +01:00
Yohann D'ANELLO dfd2d319a8
Add text colors
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2020-12-21 16:35:49 +01:00
Yohann D'ANELLO 04f31a1159
Better terminal refresh
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2020-12-21 16:35:49 +01:00
Yohann D'ANELLO c609ca998a
Uses curses to have a proper terminal UI
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2020-12-21 16:35:48 +01:00
Yohann D'ANELLO a28975c895
Clients can communicate together (without any innondation)
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2020-12-21 16:35:48 +01:00
Yohann D'ANELLO 9561912ac6
A packet can have multiple TLVs
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2020-12-21 16:35:47 +01:00
Yohann D'ANELLO a796bed259
Receive packets in a dedicated thread, that is called "worm"
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2020-12-21 16:35:47 +01:00
Yohann D'ANELLO 8ef3f3a21c
Use IPv4-Mapping to have IPv4 compatibility
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2020-12-21 16:35:47 +01:00
Yohann D'ANELLO e06d7b9540
Linting
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2020-12-21 16:35:46 +01:00
Yohann D'ANELLO a4cf467e59
Translate tuples (address, port) into hazelnuts
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2020-12-21 16:35:46 +01:00
Yohann D'ANELLO 79b8a44461
Resolve DNS as IPv6 addresses before connecting to the socket
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2020-12-21 16:35:45 +01:00
Yohann D'ANELLO cf4833573a
Use IPv6 addresses
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2020-12-21 16:35:45 +01:00
Yohann D'ANELLO abbcbbc3b1
Construct TLVs
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2020-12-21 16:35:45 +01:00
Yohann D'ANELLO 1caf06bf24
Send packets rather than send raw byte array data
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2020-12-21 16:35:44 +01:00
Yohann D'ANELLO acf1cffec1
Use a packet structure to wrap raw data
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2020-12-21 16:35:44 +01:00
Yohann D'ANELLO a882228458
Fix typing
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2020-12-21 16:35:43 +01:00
Yohann D'ANELLO 169625f20c
Clients are managed in classes
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2020-12-21 16:35:43 +01:00
Yohann D'ANELLO 0cf25ffbe7
Connect sockets
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2020-12-21 16:35:43 +01:00
Yohann D'ANELLO bd6a8fc431
Prepare setup
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2020-12-21 16:35:42 +01:00
Yohann D'ANELLO 53d0eb0f27
Add small README
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2020-12-21 16:35:42 +01:00
Yohann D'ANELLO d994ac9d67
Parse arguments to get address and port
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2020-12-21 16:35:41 +01:00
Yohann D'ANELLO 272d0c25d6 🎉 Init project 2020-12-03 16:36:44 +01:00