summaryrefslogtreecommitdiffstats
path: root/pica-client/skynet.cpp
diff options
context:
space:
mode:
authorAnton <anton@picapica>2016-06-25 23:35:49 +0400
committerAnton <anton@picapica>2016-06-25 23:36:30 +0400
commitc4304c26ce0ff043779e861fde9ec39f207f7600 (patch)
tree57d64d65bb5a2391245cad28bfff50507277a30c /pica-client/skynet.cpp
parent7474744a007d615093091c74e9ba72f56e39a205 (diff)
downloadpica-pica-c4304c26ce0ff043779e861fde9ec39f207f7600.tar.gz
pica-pica-c4304c26ce0ff043779e861fde9ec39f207f7600.zip
added callbacks
Diffstat (limited to 'pica-client/skynet.cpp')
-rw-r--r--pica-client/skynet.cpp26
1 files changed, 25 insertions, 1 deletions
diff --git a/pica-client/skynet.cpp b/pica-client/skynet.cpp
index 55a4120..a3bf44d 100644
--- a/pica-client/skynet.cpp
+++ b/pica-client/skynet.cpp
@@ -31,7 +31,11 @@ PICA_client_callbacks cbs = {
denied_file_cb,
file_progress,
file_control,
- file_finished
+ file_finished,
+ c2n_established_cb,
+ c2n_failed_cb,
+ c2n_closed_cb,
+ listener_error_cb
};
PICA_client_init(&cbs);
@@ -793,3 +797,23 @@ void SkyNet::file_finished(const unsigned char *peer_id, int sending)
else
skynet->emit_IncomingFileFinished(QByteArray((const char *)peer_id, PICA_ID_SIZE));
}
+
+void SkyNet::c2n_established_cb(struct PICA_c2n *c2n)
+{
+
+}
+
+void SkyNet::c2n_failed_cb(struct PICA_c2n *c2n)
+{
+
+}
+
+void SkyNet::c2n_closed_cb(struct PICA_c2n *c2n)
+{
+
+}
+
+void SkyNet::listener_error_cb(struct PICA_listener *lst, int errorcode)
+{
+
+}