Edinburgh Speech Tools  2.1-release
io.cc File Reference
#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"
Include dependency graph for io.cc:

Go to the source code of this file.

Macros

#define MAX_LINE_LENGTH   (256)
 

Functions

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)
 

Variables

EST_Regex RxURL ("\\([a-z]+\\)://?\\([^/:]+\\)\\(:\\([0-9]+\\)\\)?\\(.*\\)")
 
EST_Regex RxFILEURL ("file:.*")
 
const int default_http_port = 80
 
const int default_ftp_port = 21
 

Macro Definition Documentation

#define MAX_LINE_LENGTH   (256)

Definition at line 65 of file io.cc.

Function Documentation

int parse_url ( const EST_String url,
EST_String protocol,
EST_String host,
EST_String port,
EST_String path 
)

Definition at line 80 of file io.cc.

int fd_open_stdinout ( const char *  r_or_w)

Definition at line 191 of file io.cc.

int fd_open_file ( const char *  name,
const char *  r_or_w 
)

Definition at line 209 of file io.cc.

int fd_open_http ( const char *  host,
int  port,
const char *  path,
const char *  r_or_w 
)

Definition at line 247 of file io.cc.

int fd_open_ftp ( const char *  host,
int  port,
const char *  path,
const char *  r_or_w 
)

Definition at line 314 of file io.cc.

int fd_open_tcp ( const char *  host,
int  port,
const char *  text,
const char *  r_or_w 
)

Definition at line 327 of file io.cc.

int fd_open_url ( const char *  protocol,
const char *  host,
const char *  port,
const char *  path,
const char *  r_or_w 
)

Definition at line 354 of file io.cc.

Variable Documentation

EST_Regex RxURL("\\([a-z]+\\)://?\\([^/:]+\\)\\(:\\([0-9]+\\)\\)?\\(.*\\)")
EST_Regex RxFILEURL("file:.*")
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.