aboutsummaryrefslogtreecommitdiffstats
path: root/ncpd/socketchan.h
blob: 0911c0c22ae5bb7d98453eeb5a17a3099c4f872c (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
28
#ifndef _socketchan_h_
#define _socketchan_h_

#include "bool.h"
#include "channel.h"
class ppsocket;
class IOWatch;

class socketChan : public channel {
public:
  socketChan(ppsocket* comms, ncp* ncpController, IOWatch &iow);
  virtual ~socketChan();

  void ncpDataCallback(bufferStore& a);
  const char* getNcpConnectName();
  void ncpConnectAck();
  void ncpConnectTerminate();

  bool isConnected() const;
  void socketPoll();
private:
  ppsocket* skt;
  IOWatch &iow;
  char* connectName;
  bool connected;
};

#endif