Age | Commit message (Collapse) | Author | |
---|---|---|---|
2014-09-23 | Post a KILL when cancelling transfers | sin | |
2014-09-23 | Remove useless { } | sin | |
2014-09-23 | Cancel transfers properly | sin | |
2014-09-23 | We need to force TCP mode when using the proxy | sin | |
2014-09-23 | Add proxy support | sin | |
(Remove tcpenabled from config.def.h as it can easily be flipped at runtime via the cmdline switch). | |||
2014-09-23 | Add TCP mode | sin | |
2014-09-23 | Refactor data-structures | FRIGN | |
2014-09-23 | Scream if the datafile has 0 length | sin | |
2014-09-23 | Add frienddestroy() and refactor removefriend() | sin | |
friendcreate() populates the fs, frienddestroy() removes the friend related files from the fs. removefriend() only acts on the data from the friend's remove fifo. The "callback" in this case is responsible for reading the fifo like in all other cases (sendfriendtext() etc.). No weird dance with special function arguments to flag "official" removal. All friend related "callbacks" just need to operate on a struct friend *. | |||
2014-09-22 | Use fsync() on fd in datasave() | sin | |
2014-09-22 | Refactor removefriend() | FRIGN | |
2014-09-22 | Add support for removing friends | sin | |
2014-09-22 | Dump our status message in the status/out file not our nickname | sin | |
2014-09-22 | Use number of seconds since epoch as a timestamp for naming files uniquely | sin | |
This breaks if time travel becomes a possibility. | |||
2014-09-22 | Use O_RDONLY when opening the datafile | sin | |
2014-09-22 | Remeber to truncate datafile in datasave() in case it shrinks | sin | |
2014-09-22 | Change datasave() and localinit() to use fd's instead of fp's | FRIGN | |
2014-09-22 | Print message before password prompt | sin | |
2014-09-22 | Refactor dataload() | FRIGN | |
Use fd's instead of fp's and simplify the case-handling for encryption. | |||
2014-09-22 | Refactor fifoflush() | FRIGN | |
After the previous simplification of return-values of fiforead() (exit if there's a more serious issue), fifoflush() can easily be replaced with a oneliner calling fiforead until it returns 0. In case 0 is returned, the underlying fifo will have already been reopened. | |||
2014-09-22 | Style fix | sin | |
2014-09-22 | Rename encryptsave to encryptdatafile | sin | |
2014-09-22 | Allow to encrypt a plain text data file and vice versa | sin | |
2014-09-22 | Inform the user if encryption is enabled but the datafile is not encrypted | sin | |
2014-09-22 | Print a newline between the banner and the rest | sin | |
2014-09-22 | Allow a client with encrypted support to load non-encrypt datafiles | sin | |
2014-09-22 | Just realloc(), don't leak if we get called more than once | sin | |
2014-09-22 | Oops | sin | |
2014-09-22 | Just check p[0] | sin | |
2014-09-22 | Forbid empty passwords, keep looping | sin | |
2014-09-22 | Make sure to report when .ratox.data doesn't match our encryption config | sin | |
2014-09-22 | Keep asking for password if it doesn't match | sin | |
2014-09-22 | Add support for encrypted save files | sin | |
2014-09-21 | Add IPv6 support | sin | |
Default to IPv4. | |||
2014-09-21 | Lay the ground for IPv6 support | sin | |
2014-09-21 | Update nodelist | sin | |
2014-09-21 | Only close file descriptors when they are not -1 | sin | |
2014-09-21 | Add shutdown() for clean exit | FRIGN | |
This also sends a broadcast to all friends you went offline, leading to an immediate event-feedback. | |||
2014-09-20 | fiforead() should accept a void * instead of char * | sin | |
Remove ugly casts. | |||
2014-09-20 | Fix off-by-one bugs when calling fiforead() | sin | |
dirfd should be the first arg to be consistent with other functions. | |||
2014-09-20 | Refactor sendfriendreq() | FRIGN | |
Put the error-strings in one single data-structure and flush the err-file every time before a new incoming request, so it's empty when the request succeeds. | |||
2014-09-20 | Implement fiforead() | FRIGN | |
fiforead() automatically reopens a file-descriptor in case it returns EOF (return 0). It returns -1 on error. | |||
2014-09-19 | Initialize fdmax | sin | |
2014-09-19 | Factor out fifoflush() in a separate func | sin | |
Also flush the fifo for stalled transfers | |||
2014-09-19 | Clear up the enums and fix implicit condition-bug | FRIGN | |
The OUT_F-type was not clear. Make it easier to see the out-file has no state (=NONE) and is defined for each slot individually. Moreover, in the initial creation, the err-file fell through just because STATIC = 0 and .outfile wasn't defined for it. It was only coincidence this worked and now we have a much more bulletproof implementation. | |||
2014-09-19 | Handle rejected transfers | sin | |
2014-09-19 | Fix PAUSE/RESUME in file transfers | sin | |
The doc lies, if the receiver resumes a transfer you get a control packet with send_receive == 1 and control_type == TOX_FILECONTROL_ACCEPT. We keep state locally and move from PAUSED to INPROGRESS when the above happens. | |||
2014-09-19 | Add TRANSFER_PAUSED state | sin | |
Doesn't quite work yet though. | |||
2014-09-19 | Inform the user when a transfer is in progress | sin | |
2014-09-19 | Fix file transfers + texting to use O_RDONLY for FIFOs | sin | |
Just re-open them to clear EOF. |