File: netlink.h

package info (click to toggle)
netkit-telnet 0.17-42
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 2,444 kB
  • sloc: cpp: 6,451; ansic: 4,267; sh: 110; makefile: 64
file content (29 lines) | stat: -rw-r--r-- 505 bytes parent folder | download | duplicates (16)
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
29

class netlink {
 private:
    int family;
 protected:
    int net;
 public:
    netlink();
    ~netlink();

    int bind(struct addrinfo *hostaddr);
    int socket(int family);
    int connect(int debug, struct addrinfo *hostaddr, 
		char *srcroute, int srlen,
		int tos);
    void close(int doshutdown);

    int setdebug(int debug);
    void oobinline();
    void nonblock(int onoff);

    int stilloob();

    int send(const char *buf, int len, int flags);

    int getfd();
};

extern netlink nlink;