Commit 0ba48136 authored by Martin Pool's avatar Martin Pool

Add some comments.

parent 38bf526f
...@@ -455,6 +455,8 @@ void io_flush(void) ...@@ -455,6 +455,8 @@ void io_flush(void)
io_buffer_count = 0; io_buffer_count = 0;
} }
/* XXX: fd is ignored, which seems a little strange. */
void io_end_buffering(int fd) void io_end_buffering(int fd)
{ {
io_flush(); io_flush();
......
/* /* -*- c-file-style: "linux" -*-
Copyright (C) Andrew Tridgell 1996
Copyright (C) 1996-2000 by Andrew Tridgell
Copyright (C) Paul Mackerras 1996 Copyright (C) Paul Mackerras 1996
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
...@@ -458,6 +459,11 @@ void start_server(int f_in, int f_out, int argc, char *argv[]) ...@@ -458,6 +459,11 @@ void start_server(int f_in, int f_out, int argc, char *argv[])
exit_cleanup(0); exit_cleanup(0);
} }
/*
* This is called once the connection has been negotiated. It is used
* for rsyncd, remote-shell, and local connections.
*/
int client_run(int f_in, int f_out, int pid, int argc, char *argv[]) int client_run(int f_in, int f_out, int pid, int argc, char *argv[])
{ {
struct file_list *flist; struct file_list *flist;
...@@ -545,6 +551,12 @@ static char *find_colon(char *s) ...@@ -545,6 +551,12 @@ static char *find_colon(char *s)
return p; return p;
} }
/*
* Start a client for either type of remote connection. Work out
* whether the arguments request a remote shell or rsyncd connection,
* and call the appropriate connection function, then run_client.
*/
static int start_client(int argc, char *argv[]) static int start_client(int argc, char *argv[])
{ {
char *p; char *p;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment