File: stream.h

package info (click to toggle)
termrec 0.19-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,148 kB
  • sloc: ansic: 8,430; makefile: 181; perl: 16; sh: 15
file content (14 lines) | stat: -rw-r--r-- 706 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
int open_curl(const char* url, int mode, const char **error);
int open_file(const char* url, int mode, const char **error);
int open_tcp(const char* url, int mode, const char **error);
int open_telnet(const char* url, int mode, const char **error);
int open_termcast(const char* url, int mode, const char **error);
int match_suffix(const char *txt, const char *ext, int skip);
int match_prefix(const char *txt, const char *ext);
int filter(void func(int,int,const char*), int fd, int wr, const char *arg, const char **error);

int connect_tcp(const char *url, int port, const char **rest, const char **error);
void telnet(int sock, int fd, const char *arg);
#ifdef IS_WIN32
void reap_streams(void);
#endif