Commit Graph

348 Commits

Author SHA1 Message Date
Zack Scholl bc4bd2b0a8 don't use writer 2018-09-26 11:11:19 -07:00
Zack Scholl 8ddd7aff06 flush once 2018-09-26 11:07:17 -07:00
Zack Scholl cc0ef58b9f use netconn 2018-09-26 10:54:11 -07:00
Zack Scholl 21cfcc0bc2 use netconn 2018-09-26 10:53:47 -07:00
Zack Scholl 928b28dc80 use netconn 2018-09-26 10:51:28 -07:00
Zack Scholl fecc8d5897 use netconn 2018-09-26 10:46:36 -07:00
Zack Scholl 420d2be271 use netconn 2018-09-26 10:43:38 -07:00
Zack Scholl 1261a16b55 try fix 2018-09-26 10:09:11 -07:00
Zack Scholl 558d9133a6 try fix 2018-09-26 10:03:13 -07:00
Zack Scholl 267056b3fd try fix 2018-09-26 09:55:14 -07:00
Zack Scholl 4e3138e099 try fix 2018-09-26 09:48:11 -07:00
Zack Scholl a6b33fe046 try fix 2018-09-26 09:45:36 -07:00
Zack Scholl ecf8cbcdda try fix 2018-09-26 09:42:45 -07:00
Zack Scholl f6e2560742 try fix 2018-09-26 09:41:12 -07:00
Zack Scholl ea7ed1a2db try fix 2018-09-26 09:40:40 -07:00
Zack Scholl e92c7f15f1 try fix 2018-09-26 09:39:18 -07:00
Zack Scholl 3fc8edfef9 try fix 2018-09-26 09:38:37 -07:00
Zack Scholl 089d2bbe1a try fix 2018-09-26 09:36:25 -07:00
Zack Scholl 0bd4a0ac75 try fix 2018-09-26 09:27:36 -07:00
Zack Scholl 7a961ecffd try fix 2018-09-26 09:26:44 -07:00
Zack Scholl d2a708eaaa try fix 2018-09-26 09:24:40 -07:00
Zack Scholl b573f5c853 try fix 2018-09-26 09:23:07 -07:00
Zack Scholl 1049e9c8c8 try fix 2018-09-26 09:20:20 -07:00
Zack Scholl 113452d459 try fix 2018-09-26 09:14:24 -07:00
Zack Scholl 1954691f44 try fix 2018-09-26 09:13:11 -07:00
Zack Scholl 182a9fe2f4 try fix 2018-09-26 09:12:38 -07:00
Zack Scholl 42c0240e50 try fix 2018-09-26 09:11:36 -07:00
Zack Scholl 73d8eadce4 try fix 2018-09-26 08:54:01 -07:00
Zack Scholl c0e9d478e7 try fix 2018-09-26 08:46:12 -07:00
Zack Scholl 82b0d2d4c0 use tcpconn 2018-09-26 07:53:46 -07:00
Zack Scholl ab70b53998 use writers in relay 2018-09-26 07:41:07 -07:00
Zack Scholl 085dd4e4c3 implement readers and writers all around 2018-09-26 07:39:45 -07:00
Zack Scholl ea548f290c increase size 2018-09-26 06:57:52 -07:00
Zack Scholl 1a7b123519 increase size 2018-09-26 06:53:46 -07:00
Zack Scholl ae13f82c9e increase size 2018-09-26 06:53:01 -07:00
Zack Scholl f483a6ab9c increase size 2018-09-26 06:51:34 -07:00
Zack Scholl 02196654d9 update 2018-09-26 06:49:39 -07:00
Zack Scholl 7d5d7e6cfb update 2018-09-26 06:48:07 -07:00
Zack Scholl 082dcd2037 revert 2018-09-26 06:44:07 -07:00
Zack Scholl 62d9d74753 increase buffer 2018-09-26 06:43:31 -07:00
Zack Scholl f2f1b31fbc increase buffer size 2018-09-26 06:39:26 -07:00
Zack Scholl 397ceea34c revert 2018-09-26 06:36:47 -07:00
Zack Scholl 0b3d19a52e optimize relay 2018-09-26 06:35:51 -07:00
Zack Scholl da2b22f73d less printing 2018-09-25 19:49:05 -07:00
Zack Scholl 5a94062171 whoops 2018-09-25 19:29:33 -07:00
Zack Scholl a59399630d fixes 2018-09-25 19:25:27 -07:00
Zack Scholl 162b12f42b don't need this anymore 2018-09-25 18:56:36 -07:00
Zack Scholl efa66f7cbe better marshaling 2018-09-25 18:38:19 -07:00
Zack Scholl 7f0b919b0b fix bar 2018-09-25 18:25:12 -07:00
Zack Scholl c8c532c5dd small fix 2018-09-25 17:24:06 -07:00
Zack Scholl 71fee31da0 TCP ports use lots 2018-09-25 17:18:43 -07:00
Zack Scholl ec5d45307a seems to work, with problems 2018-09-25 17:09:45 -07:00
Zack Scholl 02e8021735 fix recipient 2018-09-25 16:14:41 -07:00
Zack Scholl 667edd0373 multiple tcp ports 2018-09-25 15:14:58 -07:00
Zack Scholl a7b8488040 use all procs 2018-09-25 12:33:51 -07:00
Zack Scholl f62459e1a4 move reading to goroutine 2018-09-25 09:55:35 -07:00
Zack Scholl 75f7cdcf65 introduce magic bytes to stop 2018-09-25 09:39:18 -07:00
Zack Scholl ee7518c7bd use best compression 2018-09-25 09:27:32 -07:00
Zack Scholl 02e63b6473 make faster 2018-09-25 09:17:23 -07:00
Zack Scholl 196c9253b8 use best compression 2018-09-25 07:31:21 -07:00
Zack Scholl 1a22d37c2d do compression in thread 2018-09-25 07:29:55 -07:00
Zack Scholl f169b12109 simplify test 2018-09-24 16:16:33 -07:00
Zack Scholl 44fad198e7 close correctly 2018-09-24 16:10:04 -07:00
Zack Scholl 7df06272b8 make sure to close connection 2018-09-24 16:05:34 -07:00
Zack Scholl f56d5c797c use enc/comp in test 2018-09-24 13:24:18 -07:00
Zack Scholl 7147980eac encryption faster with simpler marshaling 2018-09-24 12:52:19 -07:00
Zack Scholl 8bfbe36dd9 do minimal compression 2018-09-24 12:41:35 -07:00
Zack Scholl 2f47dd3178 disable compression/enc 2018-09-24 12:21:38 -07:00
Zack Scholl 6635c84f70 raise tcp size 2018-09-24 09:36:48 -07:00
Zack Scholl 7891f27b62 fix test 2018-09-24 08:35:24 -07:00
Zack Scholl f6c2382c0a fix 2018-09-24 08:32:17 -07:00
Zack Scholl 26f0fc3319 ok windows seems to work now 2018-09-24 08:29:54 -07:00
Zack Scholl 5397634217 works on linux? 2018-09-24 07:51:56 -07:00
Zack Scholl 02f4b08929 not working dunno why 2018-09-24 07:51:24 -07:00
Zack Scholl 55b1fa35e4 add both tests 2018-09-24 07:29:44 -07:00
Zack Scholl b202682596 local relay runs with tcp port too 2018-09-24 07:26:52 -07:00
Zack Scholl b14f1c35a3 disable broadcast 2018-09-24 07:24:59 -07:00
Zack Scholl e10789b558 allow forcing using websockets 2018-09-24 07:17:35 -07:00
Zack Scholl 80d48d45d5 test works 2018-09-24 07:06:55 -07:00
Zack Scholl e8ef8e1c61 add test 2018-09-24 07:00:48 -07:00
Zack Scholl 90b08abf39 allow discovering self 2018-09-24 06:49:26 -07:00
Zack Scholl e6b9655387 add benchmark 2018-09-24 06:13:43 -07:00
Zack Scholl 50c29e7334 simplify 2018-09-24 06:10:31 -07:00
Zack Scholl 711f8dfeec improve comm 2018-09-23 19:24:57 -07:00
Zack Scholl ba20bb63ca fix again 2018-09-23 18:00:00 -06:00
Zack Scholl 45fe9b422d fiX 2018-09-23 18:00:00 -06:00
Zack Scholl 975bab61fb make tcp optional 2018-09-23 18:00:00 -06:00
Zack Scholl b7c447473d change buffer size 2018-09-23 18:00:13 -06:00
Zack Scholl 73c33ebe02 fix sending 2018-09-23 18:00:00 -06:00
Zack Scholl fe38107c42 no log 2018-09-23 18:00:00 -06:00
Zack Scholl 7651ed0562 don't count empty bytes 2018-09-23 18:00:09 -06:00
Zack Scholl 2ebe3c1328 update read 2018-09-23 18:00:00 -06:00
Zack Scholl 47fe8a2116 don't count empty bytes 2018-09-23 18:00:00 -06:00
Zack Scholl a8c0c02755 add read deadline 2018-09-23 18:00:00 -06:00
Zack Scholl 8fab2299a1 change buffer size 2018-09-23 18:00:00 -06:00
Zack Scholl 4f9532b761 remove old comments 2018-09-23 18:00:00 -06:00
Zack Scholl da9634c949 change buffer size 2018-09-23 18:00:05 -06:00
Zack Scholl b2939a0452 fix websocket address 2018-09-23 18:00:00 -06:00
Zack Scholl 2788a4e742 communicate tcp port to sender/receiver 2018-09-23 18:00:00 -06:00
Zack Scholl 384de31c5a allow TCP connections as alternative 2018-09-23 18:00:00 -06:00
Zack Scholl 177612f112 update buffer 2018-09-23 18:00:00 -06:00
Zack Scholl 2f800f1de3 add buffer size 2018-09-23 18:00:00 -06:00
Zack Scholl 8797d35fa1 use single variable for buffer size 2018-09-23 18:00:00 -06:00
Zack Scholl c9dab1ca44 gather file info async, encrypt file info 2018-09-23 18:00:00 -06:00
Zack Scholl 76cb610ffd exchange IP addresses 2018-09-23 18:00:00 -06:00
Zack Scholl d860fe1e9e better ui handling with spinner 2018-09-23 18:00:00 -06:00
Zack Scholl 8afc75f1fc listen for interrupt in websockets 2018-09-23 18:00:00 -06:00
Zack Scholl 0a0c0bfd32 send local/public status 2018-09-23 18:00:00 -06:00
Zack Scholl f3df177ba2 functions to get local/public IP 2018-09-23 18:00:00 -06:00
Zack Scholl 7799d2fb58 use spinner fork 2018-09-23 18:00:00 -06:00
Zack Scholl 232f3375b1 only compress if its not a directory 2018-09-22 10:59:45 -07:00
Zack Scholl c6374da410 toggle encryption/compression 2018-09-22 11:57:04 -06:00
Zack Scholl f977ac24c4 add is compressed/encrypted to filestats 2018-09-22 11:57:18 -06:00
Zack Scholl 1f64d1c93a check if discovered is valid 2018-09-22 11:57:04 -06:00
Zack Scholl 10111b92cd spinner should be in stderr 2018-09-22 11:57:04 -06:00
Zack Scholl e13f8e7067 allow stdout 2018-09-22 11:57:04 -06:00
Zack Scholl 1acbe9c475 relay log more 2018-09-22 11:57:04 -06:00
Zack Scholl 73791a4dc7 change buffer size 2018-09-22 11:57:04 -06:00
Zack Scholl b469d5db4b increase write wait 2018-09-22 11:57:15 -06:00
Zack Scholl 742a935ea9 don't wait for ok 2018-09-22 11:57:11 -06:00
Zack Scholl 54b22cd732 increase buffer 2018-09-22 11:57:08 -06:00
Zack Scholl 9cf6bdf4a8 move file processing until after recipient chimes in 2018-09-22 11:57:04 -06:00
Zack Scholl 4d9455c24b add no prompt option 2018-09-22 11:57:04 -06:00
Zack Scholl 7513702e9c add transfer complete 2018-09-22 11:57:04 -06:00
Zack Scholl 66eeab25fb better spinner 2018-09-22 11:57:04 -06:00
Zack Scholl 82315ca413 recipient use public OR local 2018-09-22 11:57:04 -06:00
Zack Scholl cd3a936795 add recipient finish line 2018-09-22 11:57:04 -06:00
Zack Scholl b1aeedb107 tell server no 2018-09-22 11:57:04 -06:00
Zack Scholl 6d9c829579 prompt user if its okay to receive file 2018-09-22 11:57:04 -06:00
Zack Scholl 1add7e94c9 get receive code if empty 2018-09-22 11:57:04 -06:00
Zack Scholl f709df4d3e show spinner 2018-09-22 11:57:04 -06:00
Zack Scholl 55bd83576a show text 2018-09-22 11:57:04 -06:00
Zack Scholl 91532085c7 add more text 2018-09-22 11:57:04 -06:00
Zack Scholl f3eb85dd95 add randome name 2018-09-22 11:57:04 -06:00
Zack Scholl ebac8beaaa use stderr for output 2018-09-22 11:57:04 -06:00
Zack Scholl 40672a4eaa update readme 2018-09-22 11:57:04 -06:00
Zack Scholl 0528bb22ea determine room from first three chars of codephrase 2018-09-22 11:57:04 -06:00
Zack Scholl 4fd172b6fc fix getting hash 2018-09-22 11:57:04 -06:00
Zack Scholl 6911848141 zip should accomodate relative links 2018-09-22 11:57:04 -06:00
Zack Scholl 9af7c05dc6 remove the zip file if not debug 2018-09-22 11:57:04 -06:00
Zack Scholl c4cfa9b07f unzip in current location 2018-09-22 11:57:04 -06:00
Zack Scholl 11ab8a8078 written file should onlybe name 2018-09-22 11:57:04 -06:00
Zack Scholl a225a08dbc add exists 2018-09-22 11:57:04 -06:00
Zack Scholl 80471c7d02 hash the sent name 2018-09-22 11:56:59 -06:00
Zack Scholl f9ed7553af use sent name 2018-09-21 21:55:07 -07:00
Zack Scholl 83f199b213 add zipping to sending 2018-09-21 21:52:29 -07:00
Zack Scholl 5bf4ff1866 add dirname 2018-09-21 21:50:30 -07:00
Zack Scholl caf5511805 add zipping 2018-09-21 21:50:20 -07:00
Zack Scholl b6b6b754c9 don't show error on 1005 2018-09-21 21:40:39 -07:00
Zack Scholl 24493cf7f5 add peer discovery 2018-09-21 21:35:33 -07:00