summaryrefslogtreecommitdiffstats
path: root/qarsh_packet.h
Commit message (Collapse)AuthorAgeFilesLines
* Remove offset from data packetNathan Straz2013-10-021-2/+1
| | | | | We really don't need this field since we always copy data sequentially.
* Increase buffer and packet sizesNathan Straz2013-09-161-1/+1
| | | | | | | | | This coordinates the buffer sizes with the max packet size. qarshd and qarsh will probably break if this value does not match between client and server builds. Also increase the value to reduce overhead. A max packet size of 16k only yields 40MB/s. Increase that to 128k and we can do 500MB/s.
* Remove complicated remote file descriptor codeNathan Straz2013-09-111-2/+1
| | | | | | | | Only handle one file transfer at a time so we don't need an array to track multiple transfers or know the remote's fd number. Loop in recv_packet until we read a whole packet.
* Get commands running over one socketNathan Straz2013-09-111-5/+11
| | | | Added a new packet to limit data sent from the other side.
* Get qacp local to remote working on main socketNathan Straz2013-09-111-6/+3
| | | | | | | | | | I removed the buffering layer from recv_packet because it made the logic too complex around the pselect in qarshd. Now only read as much as needed to get each packet. qarshd adds an array for remote file descriptors which is only a stub for now. This needs to be expanded to allow multiple file transfers at the same time for runcmd.
* Add new data packet typeNathan Straz2013-09-111-1/+12
|
* Convert packet parsingNathan Straz2013-09-111-1/+1
|
* Rewrite qptostr to store binary bits into an existing bufferNathan Straz2013-09-111-1/+1
|
* Use off_t instead of size_t so we can transfer files larger than 2GB.Nate Straz2008-09-231-2/+2
| | | | | | I changed all formats from %zd to %lld, but this adds a lot of warnings because off_t isn't the same as long long int to the compiler. I don't know if there is a way to avoid the warnings on all platforms.
* Add copyright notices and GPL headerNate Straz2008-09-231-0/+19
|
* Merge qarsh revisions 1727:1738 from sistina-test branch djansa-qarsh.Nate Straz2008-09-231-2/+1
|
* Flatten the qarsh tree.Nate Straz2008-09-231-0/+129