Commit Graph

40 Commits

Author SHA1 Message Date
Nicolás Ortega Froysa
d5a33ccd79
Switch to use const 2017-09-23 11:29:48 +02:00
Nicolás Ortega Froysa
43772c6181
On run function if node is running. 2017-09-21 10:28:11 +02:00
Nicolás Ortega Froysa
1b24fb56b4
Include all new messages, including own.
Messages sent from one's own node can be used as confirmation of the
send.
2017-09-21 10:13:03 +02:00
Nicolás Ortega Froysa
0df937d3fd
Should now be able to join channels. 2017-09-21 09:14:31 +02:00
Nicolás Ortega Froysa
7d6cda8d1b
Creating new channel file. 2017-09-20 21:02:25 +02:00
Nicolás Ortega Froysa
9eee5b7ea5
Moved node to global variable. 2017-09-20 21:02:04 +02:00
Nicolás Ortega Froysa
3eb8a5e887
Connect may give error. 2017-09-20 21:01:07 +02:00
Nicolás Ortega Froysa
0337991c0b
Channel functionality will be added in the alpha 2017-09-20 15:14:28 +02:00
Nicolás Ortega Froysa
d706702a4e
Some commented out functions to enable later.
The next release of OpenDHT should contain the fixes for this.
2017-09-20 10:54:33 +02:00
Nicolás Ortega Froysa
5ab7a7bb5b
Minor optimization. 2017-09-20 10:54:13 +02:00
Nicolás Ortega Froysa
47271ae5ff
Added error handling. 2017-09-20 08:34:52 +02:00
Nicolás Ortega Froysa
f1657f1ffd
Starting new with C interface. 2017-09-18 10:30:18 +02:00
Nicolás Ortega Froysa
4b562c3aa7
Remove old files.
Gonna make this library in a C compatible way.
2017-09-18 10:08:36 +02:00
Nicolás Ortega Froysa
83ed9b2a86
Implemented first connect function. 2017-08-23 15:12:04 -05:00
Nicolás Ortega Froysa
6a2798d0c4
Adding new files. 2017-08-18 17:00:58 -05:00
Nicolás Ortega Froysa
48e9006220
Beginning migration. 2017-08-12 13:59:18 -05:00
Nicolás Ortega Froysa
e4de99086a
Implemented node removal function. 2017-08-05 17:28:31 -05:00
Nicolás Ortega Froysa
5a53d3681d
Fixing thread cancellation. 2017-08-05 16:38:24 -05:00
Nicolás Ortega Froysa
e82514a56a
Minor fixes with list. 2017-08-05 16:29:45 -05:00
Nicolás Ortega Froysa
afe5f6ae4e
Adding implementation for adding new node. 2017-08-05 15:41:01 -05:00
Nicolás Ortega Froysa
03156e45de
Remove old interfaces 2017-08-05 15:14:37 -05:00
Nicolás A. Ortega
874a33b687
Added new interfaces.
- Resize directory list
 - Get size of the directory
 - Get the number of nodes in directory
 - Fixed bug in shutdown allowing to start back up
2017-08-01 16:42:30 -05:00
Nicolás A. Ortega
84ba3aa83c
Check if already started. 2017-08-01 14:52:57 -05:00
Nicolás A. Ortega
7222ad3e2a
Reorganization of interfaces. 2017-07-31 14:19:15 -05:00
Nicolás A. Ortega
d0a673d767
Using switch-case instead of if statements. 2017-07-26 15:36:45 -05:00
Nicolás A. Ortega
b1004f5617
Implemented error handling for `bind()' 2017-07-24 16:25:15 -05:00
Nicolás A. Ortega
2dcdf5b74e
No need to save the state of errno
We don't have any library calls afterwards, so it's fine.
2017-07-24 16:14:47 -05:00
Nicolás A. Ortega
6cc7de6383
Added connection class with basic binding
There's no listening yet, and still a bunch of different errors to
handle.
2017-07-23 23:19:20 -05:00
Nicolás A. Ortega
9568de6710
Fixed issue with compiler error. 2017-07-19 12:02:49 -05:00
Nicolás A. Ortega
f70c9943c8
Added error handling functionality. 2017-07-19 11:57:41 -05:00
Nicolás A. Ortega
7aed5f8124
Move files to a `neocomm/' directory. 2017-07-17 11:23:23 -05:00
Nicolás A. Ortega
0ee5cb8793
Fixed a few mistakes. 2017-07-13 21:56:19 +02:00
Nicolás A. Ortega
655350bf25
Wrong check 2017-07-13 02:00:55 +02:00
Nicolás A. Ortega
b375439f2a
Added documentation. 2017-07-11 19:18:45 +02:00
Nicolás A. Ortega
12abd12936
Added asserts. 2017-07-03 18:50:46 +02:00
Nicolás A. Ortega
0db8eb82e9
New shutdown function. 2017-07-02 17:13:59 +02:00
Nicolás A. Ortega
a393cb8b4e
Moving node list into global scope. 2017-07-02 13:38:20 +02:00
Nicolás A. Ortega
cafe6a7243
Adding a node returns a pointer to the new node.
This should help to edit aspects of it, such as whether or not it is a
directory and such.
2017-07-02 13:06:36 +02:00
Nicolás A. Ortega
da483c5ba4
Added new interfaces.
I also optimized the node list a bit so as not to use more processing
power than necessary.
2017-07-02 12:09:49 +02:00
Nicolás A. Ortega
4f66f0cc96
Started adding node functionality. 2017-07-01 18:46:22 +02:00