summaryrefslogtreecommitdiffstats
path: root/PICA_client.c
Commit message (Collapse)AuthorAgeFilesLines
* use pseudorandom bytes in short fixed-length protocol messages instead of ↵Anton2016-06-241-6/+6
| | | | random in order to not drain entropy pool
* bugfix - add c2c socket to write fd_set if state is connecting or higherAnton2016-06-191-3/+3
|
* return error from PICA_new_c2c() when c2n argument is not in connected stateAnton2016-06-191-0/+3
|
* fixed pointer typesAnton2016-05-081-1/+1
|
* appended _cb suffix to callbacks without oneAnton2016-05-051-8/+8
|
* implemented asynchronous processing of c2c connectionsAnton2016-05-051-98/+192
|
* asynchronous processing of c2c connections, work in progressAnton2016-04-131-47/+163
|
* fixed code style using "astyle --style=allman --lineend=linux --indent=tab ↵Anton2016-04-071-1494/+1500
| | | | --pad-oper *.c *.h"
* added skeleton of procmsg_C2CCONNREQ() - PICA_PROTO_C2CCONNREQ packet handlerAnton2016-04-071-0/+18
|
* generate new DH key on each handshakeAnton2015-05-251-0/+2
|
* implemented asynchronous processing of c2n connectionsAnton2015-05-111-44/+209
|
* PICA_event_loop() implementation, mostly completedAnton2015-04-151-7/+24
|
* callback for listener error notificationAnton2015-04-151-1/+1
|
* renamed remaining PICA_close_connection() -> PICA_close_c2n()Anton2015-04-111-2/+2
|
* more consistent naming, renamed conn -> c2n, channel -> c2c in function ↵Anton2015-04-111-45/+50
| | | | names and enumerations
* implementation of PICA_event_loop(), work in progressAnton2015-04-091-1/+69
|
* implementing PICA_event_loop(), created enums for c2n and c2c statesAnton2015-04-061-5/+62
|
* implemented PICA_new_listener() and PICA_close_listener()Anton2015-03-301-0/+94
|
* added missing free() call for PICA_acc struct in PICA_close_acc()Anton2015-03-301-0/+1
|
* updated test clientAnton2015-03-161-1/+1
|
* new structs PICA_acc - represents account credentials, certificate file and ↵me_desk2015-03-101-84/+180
| | | | | | private key and PICA_listener - represents port opened on client for accepting incoming direct p2p (client-to-client, bypassing node) connections; new functions for handling PICA_acc and PICA_listener, moved part of code from PICA_new_connection() to PICA_open_acc() git-svn-id: svn://localhost/project_picapica/trunk@341 fb96df88-216d-11de-830c-f3023f12d8ac
* renamed structs PICA_conninfo to PICA_c2n (client-to-node) and PICA_chaninfo ↵me_desk2015-03-101-56/+56
| | | | | | to PICA_c2c (client-to-client) git-svn-id: svn://localhost/project_picapica/trunk@340 fb96df88-216d-11de-830c-f3023f12d8ac
* added new protocol messages definitions, updated protocol versionme_desk2015-03-101-2/+2
| | | | git-svn-id: svn://localhost/project_picapica/trunk@339 fb96df88-216d-11de-830c-f3023f12d8ac
* implemented file transfer cancellationme_desk2014-07-041-0/+33
| | | | git-svn-id: svn://localhost/project_picapica/trunk@315 fb96df88-216d-11de-830c-f3023f12d8ac
* fixed pause/resume bugs, moved callbacks.file_progress() call for outgoing ↵me_desk2014-06-291-5/+11
| | | | | | transfer inside send_file_fragment to make it always be called before finished_callback git-svn-id: svn://localhost/project_picapica/trunk@314 fb96df88-216d-11de-830c-f3023f12d8ac
* added file_finished() callbackme_desk2014-06-281-7/+18
| | | | git-svn-id: svn://localhost/project_picapica/trunk@313 fb96df88-216d-11de-830c-f3023f12d8ac
* pause/resume of file transfer now worksme_desk2014-06-261-16/+84
| | | | git-svn-id: svn://localhost/project_picapica/trunk@312 fb96df88-216d-11de-830c-f3023f12d8ac
* initial minimal working file transfer implementation, new class ↵me_desk2014-05-041-29/+89
| | | | | | FileTransferController git-svn-id: svn://localhost/project_picapica/trunk@306 fb96df88-216d-11de-830c-f3023f12d8ac
* fixed typome_desk2013-12-151-1/+1
| | | | git-svn-id: svn://localhost/project_picapica/trunk@302 fb96df88-216d-11de-830c-f3023f12d8ac
* use buffer on stack, removed old check buf == NULLme_desk2013-12-151-12/+1
| | | | git-svn-id: svn://localhost/project_picapica/trunk@301 fb96df88-216d-11de-830c-f3023f12d8ac
* file sending and receiving, implemented required functions in PICA_client.c, ↵me_desk2013-12-151-22/+291
| | | | | | support for bidirectional sending and receiving two files simultaneously, file operations (open, read, write) are handled inside PICA_client instead of caller functions git-svn-id: svn://localhost/project_picapica/trunk@300 fb96df88-216d-11de-830c-f3023f12d8ac
* file transfer - added protocol messages, handler functions, PICA_client API ↵me_desk2013-11-261-3/+163
| | | | | | functions git-svn-id: svn://localhost/project_picapica/trunk@299 fb96df88-216d-11de-830c-f3023f12d8ac
* set only defined addrinfo flags, for portabilityme_desk2013-11-041-7/+7
| | | | git-svn-id: svn://localhost/project_picapica/trunk@298 fb96df88-216d-11de-830c-f3023f12d8ac
* bugfix: declare PICA_inet_ntop on Windowsme_desk2013-10-191-0/+1
| | | | git-svn-id: svn://localhost/project_picapica/trunk@292 fb96df88-216d-11de-830c-f3023f12d8ac
* replaced magic numbers with macros; own implementation of inet_ntop() for ↵me_desk2013-10-191-2/+30
| | | | | | compatibility with WindowsXP git-svn-id: svn://localhost/project_picapica/trunk@291 fb96df88-216d-11de-830c-f3023f12d8ac
* update from database schema 1 to 2 with importing old accounts and ↵me_desk2013-10-071-0/+17
| | | | | | converting them to the new id formats; implemented new function PICA_get_id_from_cert_string git-svn-id: svn://localhost/project_picapica/trunk@276 fb96df88-216d-11de-830c-f3023f12d8ac
* switched to TLS 1.2 and DHE-RSA-CAMELLIA256-SHA. DH parameters file is ↵me_desk2013-09-131-2/+30
| | | | | | created on first start git-svn-id: svn://localhost/project_picapica/trunk@273 fb96df88-216d-11de-830c-f3023f12d8ac
* updated pica-client to make it handle new id format. quint32 type for id is ↵me_desk2013-08-301-3/+36
| | | | | | replaced with QByteArray in most places. Implemented verification callbacks in client and node that allow self-signed certificates git-svn-id: svn://localhost/project_picapica/trunk@266 fb96df88-216d-11de-830c-f3023f12d8ac
* updated test_client, fixed found bugsme_desk2013-08-211-1/+1
| | | | git-svn-id: svn://localhost/project_picapica/trunk@264 fb96df88-216d-11de-830c-f3023f12d8ac
* pica-node modified to handle new id format, new files PICA_id.c PICA_id.h ↵me_desk2013-08-211-19/+2
| | | | | | containing functions for working with id git-svn-id: svn://localhost/project_picapica/trunk@263 fb96df88-216d-11de-830c-f3023f12d8ac
* changed client library code for handling new 224bit client idme_desk2013-08-211-60/+88
| | | | git-svn-id: svn://localhost/project_picapica/trunk@262 fb96df88-216d-11de-830c-f3023f12d8ac
* notifications about protocol version incompatibility implementedme_desk2013-04-131-2/+7
| | | | git-svn-id: svn://localhost/project_picapica/trunk@236 fb96df88-216d-11de-830c-f3023f12d8ac
* sending PINGREP from client, bugfix in sending PINGREQ from nodeme_desk2012-09-291-1/+19
| | | | git-svn-id: svn://localhost/project_picapica/trunk@210 fb96df88-216d-11de-830c-f3023f12d8ac
* close channel by client if it is not activated within ↵me_desk2012-09-161-3/+16
| | | | | | PICA_CHAN_ACTIVATE_TIMEOUT seconds git-svn-id: svn://localhost/project_picapica/trunk@204 fb96df88-216d-11de-830c-f3023f12d8ac
* changes required to build pica pica on Windows in MSVS2008me_desk2012-09-131-5/+6
| | | | git-svn-id: svn://localhost/project_picapica/trunk@202 fb96df88-216d-11de-830c-f3023f12d8ac
* ignore SIGPIPE in clientme_desk2012-09-131-0/+4
| | | | git-svn-id: svn://localhost/project_picapica/trunk@201 fb96df88-216d-11de-830c-f3023f12d8ac
* bugfix (bugzilla Bug 4) - check if channel is active before passing its ↵me_desk2012-09-061-1/+1
| | | | | | socket descriptor to FD_ISSET git-svn-id: svn://localhost/project_picapica/trunk@200 fb96df88-216d-11de-830c-f3023f12d8ac
* removed printf() and puts() debug outputme_desk2012-08-191-30/+30
| | | | git-svn-id: svn://localhost/project_picapica/trunk@173 fb96df88-216d-11de-830c-f3023f12d8ac
* todo list updateme_desk2012-06-171-0/+1381
git-svn-id: svn://localhost/project_picapica/trunk@128 fb96df88-216d-11de-830c-f3023f12d8ac