summaryrefslogtreecommitdiff
path: root/ratox.c
AgeCommit message (Collapse)Author
2014-10-02Add cancelrxcall()FRIGN
2014-10-01Fix format specifier for printing nospamsin
2014-10-01Use strtoul() instead of strtol()sin
2014-10-01Fix a small issue in setnospam and polish the outputFRIGN
Previously, it wouldn't check 1-byte-input. Now it does. Also, nospam/out should contain the 8-digit hexadecimal number instead of just the raw string passed to the in-fifo.
2014-10-01SAVING LOC!sin
2014-10-01Add connection delay enum instead of magic valuesin
2014-10-01Don't use magic numbers :)sin
2014-10-01Receiving calls works!sin
2014-10-01Rename callbacks and group them properlysin
2014-10-01No need to print the write(2) errorsin
2014-10-01Starting fooling around with toxav; work in progresssin
2014-10-01Break after we cancel the rx transfersin
2014-09-30Add nospam-slotFRIGN
It allows changing and reading the current nospam-value.
2014-09-30Call fiforeset() if we fail to initiate the transfersin
2014-09-30Proper typessin
2014-09-30Be consistent in how we default to the "Anonymous" namesin
2014-09-30Simplify reporting of online statussin
2014-09-30Allow empty namessin
2014-09-30Remove FRIENDNAME macro and refactor codesin
2014-09-30Print filename in file_pendingsin
2014-09-29Staticise fiforeset()sin
2014-09-29Define FRIENDNAME-Macro for repetitive idiomFRIGN
and fill up the missing cases.
2014-09-29Remember volatilesin
2014-09-29Small refactor in printrat()FRIGN
Don't use 3 printf's when 1 is possible.
2014-09-29Implement fiforeset()FRIGN
and use it to create FIFOs by not closing the passed fd when it is -1. To prevent stdin from being closed, we could think about changing the condition to if(*fd > 0).
2014-09-29Use PIPE_BUF instead of BUFSIZ for fifo readssin
2014-09-27Clear fd status when we are done to avoid double initiationsin
2014-09-27Unified log-formatFRIGN
2014-09-26Cancel rx transfer if we fail to accept it for whatever reasonsin
2014-09-26No need to open for writingsin
2014-09-26Rename RX/TX to Rx/Txsin
2014-09-26Make stdout unbuffered as early as possiblesin
2014-09-26Just flag the signal, nothing moresin
2014-09-26Default perms for directories should be 0777sin
A umask of 022 gives us 0755.
2014-09-26Fix error messagesin
2014-09-26Style fixsin
2014-09-26More tight error checkingsin
2014-09-26Replace all perror() with eprintf() callssin
2014-09-26Add eprintf.csin
2014-09-26Check return value of tox_new()sin
2014-09-25Code cleanupFRIGN
Rename variables to be clearer about what they do, avoid hungarian notation (namestr -> name). f->fid was quite confusing (is it the tox-id, id-string or friendnumber?). f->num is much clearer. Same applies to all callback- functions (fid -> frnum). The separation of Tx and Rx is completed by separating tx- and rx-state. Also fixed a strange portion where an active receive-state was checked by looking at the file-number. use the rxstate for that.
2014-09-25Add ratox-rat as ASCII-logoFRIGN
and print the current version in its ear.
2014-09-25Flag transfer completion by changing statesin
2014-09-24Style fixsin
2014-09-24Use unbuffered stdoutsin
2014-09-24Cancel transfers unconditionally if we lose connectionsin
2014-09-24File transfer fixessin
2014-09-24Cancel transfers when we come back after losing connectivity to the DHTsin
2014-09-24Handle partial writessin
2014-09-24Do it in the same order as in cancelrxtransfer()sin