summaryrefslogtreecommitdiffstats
path: root/qarsh_packet.c
Commit message (Collapse)AuthorAgeFilesLines
* Add reasonable log prioritiesNathan Straz2013-09-191-23/+24
|
* Reduce size of some fields sent on the wireNathan Straz2013-09-191-6/+28
| | | | | We don't need 32bits for packet type or remote fd. Keeping the field small also helps with reading traces.
* Creat a thin logging layerNathan Straz2013-09-191-22/+25
| | | | | | | When qarshd is run via xinetd, stderr still goes out the socket and messages from sockutil.c or qarsh_packet.c can interfere with the protocol. Create a thin wrapper which qacp and qarsh can send to stderr and qarshd can send to syslog.
* Remove complicated remote file descriptor codeNathan Straz2013-09-111-6/+3
| | | | | | | | 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-10/+47
| | | | Added a new packet to limit data sent from the other side.
* Get qacp local to remote working on main socketNathan Straz2013-09-111-31/+28
| | | | | | | | | | 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-0/+86
|
* Send all server side error messages to stderrNathan Straz2013-09-111-27/+26
| | | | This should get sent to the journal or syslog
* Remove last bits of XML dependenciesNathan Straz2013-09-111-18/+8
|
* Convert packet parsingNathan Straz2013-09-111-196/+118
|
* Rewrite qptostr to store binary bits into an existing bufferNathan Straz2013-09-111-125/+110
|
* Start by adding a packet size to the existing protocolNathan Straz2013-09-111-1/+10
|
* Fix Copyright lines. vi sure doesn't like that copyright symbol in my termDean Jansa2008-09-231-1/+1
|
* Plug some memory leaksDean Jansa2008-09-231-2/+6
|
* Update copyright dates.Nate Straz2008-09-231-1/+1
|
* Cast off_t variables to long long int when printing so we don't get theNate Straz2008-09-231-4/+4
| | | | | | | | ugly warnings. We should always be compiling with 64-bit off_t's so this should not be a problem. Change nread and nwrote back to ssize_t's since that is what read and write return. nleft remains an off_t because we initialize to stat.st_size.
* Use off_t instead of size_t so we can transfer files larger than 2GB.Nate Straz2008-09-231-6/+6
| | | | | | 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-10/+3
|
* Flatten the qarsh tree.Nate Straz2008-09-231-0/+850