djumbai_client_receiver done?

This commit is contained in:
Afonso Franco 2024-05-12 11:57:10 +01:00
parent 897c8150a5
commit 7d554c6ee2
Signed by: afonso
SSH key fingerprint: SHA256:PQTRDHPH3yALEGtHXnXBp3Orfcn21pK20t0tS1kHg54
3 changed files with 60 additions and 45 deletions

View file

@ -8,7 +8,7 @@ int new_message(message *m, unsigned int sender, unsigned int isgroup, unsigned
m->header.sender = sender;
m->header.isgroup = isgroup;
m->header.receiver = receiver;
time(&m->header.timestamp);
gettimeofday(&m->header.timestamp,NULL);
strncpy(m->content, content, MAX_CONTENT_SIZE);
return 0;
}