#include <cstdlib>
#include <cstdio>
#include <fcntl.h>
#include "EST_unix.h"
#include "EST_socket.h"
#include <sys/types.h>
#include "EST_String.h"
#include "EST_bool.h"
#include "siod.h"
#include "siodp.h"
#include "io.h"
Go to the source code of this file.
|
int | parse_url (const EST_String &url, EST_String &protocol, EST_String &host, EST_String &port, EST_String &path) |
|
int | fd_open_stdinout (const char *r_or_w) |
|
int | fd_open_file (const char *name, const char *r_or_w) |
|
int | fd_open_http (const char *host, int port, const char *path, const char *r_or_w) |
|
int | fd_open_ftp (const char *host, int port, const char *path, const char *r_or_w) |
|
int | fd_open_tcp (const char *host, int port, const char *text, const char *r_or_w) |
|
int | fd_open_url (const char *protocol, const char *host, const char *port, const char *path, const char *r_or_w) |
|
#define MAX_LINE_LENGTH (256) |
Definition at line 65 of file io.cc.
Definition at line 80 of file io.cc.
int fd_open_stdinout |
( |
const char * |
r_or_w | ) |
|
int fd_open_file |
( |
const char * |
name, |
|
|
const char * |
r_or_w |
|
) |
| |
int fd_open_http |
( |
const char * |
host, |
|
|
int |
port, |
|
|
const char * |
path, |
|
|
const char * |
r_or_w |
|
) |
| |
int fd_open_ftp |
( |
const char * |
host, |
|
|
int |
port, |
|
|
const char * |
path, |
|
|
const char * |
r_or_w |
|
) |
| |
int fd_open_tcp |
( |
const char * |
host, |
|
|
int |
port, |
|
|
const char * |
text, |
|
|
const char * |
r_or_w |
|
) |
| |
int fd_open_url |
( |
const char * |
protocol, |
|
|
const char * |
host, |
|
|
const char * |
port, |
|
|
const char * |
path, |
|
|
const char * |
r_or_w |
|
) |
| |
EST_Regex RxURL("\\([a-z]+\\)://?\\([^/:]+\\)\\(:\\([0-9]+\\)\\)?\\(.*\\)") |
const int default_http_port = 80 |
Definition at line 62 of file io.cc.
const int default_ftp_port = 21 |
Definition at line 63 of file io.cc.