Move sideband server side support into reusable form.

The server side support; this is just the very low level, and the
caller needs to know which band it wants to send things out.

Signed-off-by: Junio C Hamano <junkio@cox.net>
(cherry picked from b786552b67878c7780c50def4c069d46dc54efbe commit)
This commit is contained in:
Junio C Hamano
2006-09-10 03:20:24 -07:00
parent 49a52b1d1f
commit 958c24b1b8
3 changed files with 39 additions and 36 deletions

View File

@ -7,5 +7,6 @@
#define DEFAULT_PACKET_MAX 1000
int recv_sideband(const char *me, int in_stream, int out, int err, char *, int);
ssize_t send_sideband(int fd, int band, const char *data, ssize_t sz, int packet_max);
#endif