summaryrefslogtreecommitdiffstats
path: root/src/rxvtdaemon.h
blob: a9e16563233a890e78147195c879f991e8879fd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef RXVT_DAEMON_H
#define RXVT_DAEMON_H

#include <limits.h>

#ifndef PATH_MAX
# define PATH_MAX 16384
#endif

#include "rxvtutil.h"

struct rxvt_connection
{
  int fd;

  static char *unix_sockname ();

  void send (const char *data, int len);
  void send (const char *data);
  void send (int data);

  bool recv (auto_str &data, int *len = 0);
  bool recv (int &data);
};

#endif