Displaying 3 results from an estimated 3 matches for "am_client".
2003 Mar 08
1
[patch] rsync over existing I/O connections (new feature)
Hello,
I wrote this patch that allows you to run rsync over an existing I/O
connection, instead of creating a new rsh or socket connection.
For example, I have a client and server that talk over ssh via a simple
custom protocol. I want to use the existing ssh connection to transfer files,
but I want the flexibility of rsync to do it.
With this patch, I can do the following in my client
2009 Apr 27
1
[Code study]should we remove if (motd && *motd) section?
...quot;?
As I have found that Globals is set 0 during initialization, and I
didn't find anywhere else assign the value.
If so, should we remove this section?
Or there might be some where I missed? Please correct me, if I'm wrong.
Thanks in advance.
clientserver.c #line 147~160
> if (!am_client) {
> motd = lp_motd_file();
> if (motd && *motd) {
> FILE *f = fopen(motd,"r");
> while (f && !feof(f)) {
> int len = fread(buf, 1, bufsiz - 1, f);
> if (len > 0)
> write_buf(f_out, buf, len);
> }
> if (f)
>...
2009 Apr 22
2
[Code study] lp_motd_file defination? Help
Dear List,
Currently, I read this in clientserver.c, line 148.
motd = lp_motd_file();
I have googled, but didn't the definition of char *lp_motd_file(void).
Can anyone help to explain the following code segment. Many thanks.
#line 147 ~ 160, in clientserver.c, version 3.0.5
> if (!am_client) {
> motd = lp_motd_file();
> if (motd && *motd) {
> FILE *f = fopen(motd,"r");
> while (f && !feof(f)) {
> int len = fread(buf, 1, bufsiz - 1, f);
> if (len > 0)
> write_buf(f_out, buf, len);
> }
> if (f)
> fclose(f);
> write_sbuf(f_out...