Skip to content

Instantly share code, notes, and snippets.

void gc_save_pack_group(const GC_Chat *chat, Bin_Pack *bp)
{
if (chat->numpeers == 0) {
LOGGER_ERROR(chat->log, "Failed to pack group: numpeers is 0");
return;
}
bin_pack_array(bp, 7);
// --------------------------------------
doc: |
Toxcore save file parser (wip)
Copyright https://github.com/Green-Sky
meta:
id: tox_save
license: GPL-3.0
--start--
[0]:remove old savefiles
[1]:ID:1: BED3FD1457FFF6CB7B732965878725F26F9094C45730E6F4FAF9167859B1463F070C886D246E
[2]:ID:2: E0A6D8740AEC95E2F25AC085972225113EA759BF58C9CA651BD0AD788EB6863277E085299E61
[1]:tox num_friends:0
[1]:tox num_groups:0
[2]:tox num_friends:0
[2]:tox num_groups:0
[1]:bootstrapping ...
[1]:bootstrapping done.
#define _GNU_SOURCE
#include <ctype.h>
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#define _GNU_SOURCE
#include <ctype.h>
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
:D:--start--
:D:[1]:ID:1: 51B9E8FC7DA8517ABD7BAFF8A55D51E30B7E77F216DCF89AEA072D92F197521B89A210861C5D
:D:[2]:ID:2: 6F0816CF6052E07CE7C5A8A6929FC955B7E8131C3CA79BAB46025FDC6F75386E73CD83265096
:D:[1]:bootstrapping ...
:D:[1]:bootstrapping done.
:D:[2]:bootstrapping ...
:D:[2]:bootstrapping done.
:D:[1]:add friend res=0
:D:[2]:Connected using TCP.
:D:[1]:Connected using TCP.
all bootstrap nodes with "status_udp == true"
2 {"version":""}
1 {"version":"1000002008"}
2 {"version":"1000002009"}
1 {"version":"1000002010"}
6 {"version":"1000002012"}
14 {"version":"1000002013"}
5 {"version":"1000002015"}
1 {"version":"1000002016"}
We couldn’t find that file to show.
#include <inttypes.h>
#include <pthread.h>
#include <signal.h>
#include <string.h>
#include <stdbool.h>
#include <time.h>
#include <unistd.h>
#include <tox/tox.h>
#include <sodium.h>
@zoff99
zoff99 / gist:1c6677ce292cb986d774d5039e102e21
Last active April 14, 2019 18:56
ToxCon 2019 1st blogpost


This October the Tox developer community will be holding it's third annual Conference in the @metalabvie in the heart of Vienna, Austria.
The Event will be 3 full days, from Friday 11th October to Sunday 13th October.

We will talk about Tox, and other security related and interesting topics.
If you would like to attend, meet the Tox devs, do some live hacking, or just socialize, get your free ticket (and reserve a T-shirt) here:
  https://pretix.eu/ZMetalab/ToxCon2019/
You can find the exact address on your ticket!