Gamgee
You miserable little maggot. I'll stove your head in!
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Macros | Functions
knetfile.c File Reference
#include <time.h>
#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <sys/types.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include "htslib/knetfile.h"

Macros

#define __err_connect(func)   do { perror(func); freeaddrinfo(res); return -1; } while (0)
 

Functions

int kftp_connect (knetFile *ftp)
 
int kftp_reconnect (knetFile *ftp)
 
knetFilekftp_parse_url (const char *fn, const char *mode)
 
int kftp_connect_file (knetFile *fp)
 
knetFilekhttp_parse_url (const char *fn, const char *mode)
 
int khttp_connect_file (knetFile *fp)
 
knetFileknet_open (const char *fn, const char *mode)
 
knetFileknet_dopen (int fd, const char *mode)
 
ssize_t knet_read (knetFile *fp, void *buf, size_t len)
 
off_t knet_seek (knetFile *fp, off_t off, int whence)
 
int knet_close (knetFile *fp)
 

Macro Definition Documentation

#define __err_connect (   func)    do { perror(func); freeaddrinfo(res); return -1; } while (0)

Function Documentation

int kftp_connect ( knetFile ftp)
int kftp_connect_file ( knetFile fp)
knetFile* kftp_parse_url ( const char *  fn,
const char *  mode 
)
int kftp_reconnect ( knetFile ftp)
int khttp_connect_file ( knetFile fp)
knetFile* khttp_parse_url ( const char *  fn,
const char *  mode 
)
int knet_close ( knetFile fp)
knetFile* knet_dopen ( int  fd,
const char *  mode 
)
knetFile* knet_open ( const char *  fn,
const char *  mode 
)
ssize_t knet_read ( knetFile fp,
void *  buf,
size_t  len 
)
off_t knet_seek ( knetFile fp,
off_t  off,
int  whence 
)