2006-09-10 12:06:33 +04:00
|
|
|
#ifndef SIDEBAND_H
|
|
|
|
#define SIDEBAND_H
|
|
|
|
|
|
|
|
#define SIDEBAND_PROTOCOL_ERROR -2
|
|
|
|
#define SIDEBAND_REMOTE_ERROR -1
|
|
|
|
|
|
|
|
#define DEFAULT_PACKET_MAX 1000
|
2006-09-11 03:27:08 +04:00
|
|
|
#define LARGE_PACKET_MAX 65520
|
2006-09-10 12:06:33 +04:00
|
|
|
|
2009-03-11 00:54:17 +03:00
|
|
|
int recv_sideband(const char *me, int in_stream, int out);
|
2006-09-10 14:20:24 +04:00
|
|
|
ssize_t send_sideband(int fd, int band, const char *data, ssize_t sz, int packet_max);
|
2006-09-10 12:06:33 +04:00
|
|
|
|
|
|
|
#endif
|