- Russia, Saratov
- https://arav.su
- Joined on
2020-07-08
489d885049
Since a user can pass a port as well as an alias let's check for it every time.
9288797c03
Alright, a test struct sockaddr is not needed for inet_pton().
68cb43795b
Another update of main.c.
8b67936227
In addrbook_t name was renamed to alias. addrbook_get() to addrbook_get_by_pk(). A func addrbook_get_by_alias() was added.
4611322ee9
Added parse_argv(), version() funcs. A usage() func was changed a little, but it is not its final form. Made char **argv const. Introduced struct options.
0ac13359f1
Add 'addressbook' to .gitignore.
399c060525
In audio_destroy() check for a paStreamIsStopped error.
fa589f3122
In main check for addressbok file open errors.
d95b4c3089
Return from addrbook_load if a file is empty.
a2e0694efc
Fixed memory allocation for addrbook_t. Ditched a separate init function and moved allocation to add func. Added a variable to store the capacity of an array.
c468363efb
Okay, current state of the addrbook. And it is... Segmentation fault! xD
c8d69f23bc
Print an incoming pub key.
9e9b0ba047
Reorganised the main() func.
de1d4085b9
Move a common handshake stage in a separate func.
5e45b95fdf
Remove includes that are implicitely included.
ccca06e70f
An actually working handshake example in a main().
5174c2685e
Just set an s->remote_key pointer to NULL, do not call crypt_key_destroy on it.
b225b63cdf
In net.c sockaddr structures' had their *_len fields set to 0, so recvfrom didn't fill an inaddr field.
92d7659306
Keep on using a main() func for testing. Now a secure connection instantiation was completed. Yay!
c72eca2ad8
Made separate streams for in and out sound. WIll be very handy for muting a microphone and your companion.
d9cc37896f
Add the empty lines at the end of the sources so clang won't whine and compile. :)
97e5dae4db
In Makefile use LDFLAGS only for build of an executable, and CFLAGS only for build of the object files.
174f0df1d4
Test net module in main.
42d801f05d
A net module was rewritten to support both IPv4 and IPv6.
58645aae4b
In order to support both IPv4 and IPv6 store a type struct sockaddr. Also remove specifying af_family as an arg. It will be determined using a getaddrinfo() func.
d5f6739fcd
In Makefile added _POSIX_C_SOURCE=200112L in order to use getaddrinfo(). Also added -f flag to an rm util to ignore non-existent files.
b9b82a0e26
Return a number of bytes read or sent.
43d5bdfe80
In net_send() check if an raddr struct is set.
e5c6f23cfb
A buffer was removed from a struct net_t. Use external buffer for data receiving. net_sendto -> net_send and net_recvfrom -> net_recv.
842659e879
Remove useless comments.