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
|
|
|
|
2006-10-11 19:49:15 +04:00
|
|
|
int recv_sideband(const char *me, int in_stream, int out, int err);
|
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
|