# urlinfo_s Struct Reference

URL control structure. More...

`#include <rpmio/rpmurl.h>`

Collaboration diagram for urlinfo_s:
[legend]

## Data Fields

int | nrefs
const char * | url
const char * | scheme
const char * | user
const char * | password
const char * | host
const char * | portstr
const char * | proxyu
const char * | proxyh
int | proxyp
int | port
int | urltype
FD_t | ctrl
FD_t | data
void * | capabilities
void * | lockstore
void * | sess
off_t | current
off_t | total
int | connstatus
int | bufAlloced
char * | buf
int | openError
int | httpVersion
int | allow
int | magic

## Detailed Description

URL control structure.

Definition at line 31 of file rpmurl.h.

## Field Documentation

int urlinfo_s::nrefs

no. of references

Definition at line 32 of file rpmurl.h.

Referenced by XurlFree(), XurlLink(), and XurlNew().

const char* urlinfo_s::url

copy of original url

Definition at line 34 of file rpmurl.h.

Referenced by httpReq(), urlSplit(), and XurlFree().

const char* urlinfo_s::scheme

URI scheme.

Definition at line 36 of file rpmurl.h.

Referenced by ufdClose(), urlFind(), urlSplit(), and XurlFree().

const char* urlinfo_s::user

URI user.

Definition at line 38 of file rpmurl.h.

Referenced by ftpLogin(), urlConnect(), urlFind(), urlSplit(), and XurlFree().

const char* urlinfo_s::password

URI password.

Definition at line 40 of file rpmurl.h.

Referenced by ftpLogin(), urlConnect(), urlFind(), urlSplit(), and XurlFree().

const char* urlinfo_s::host

URI host.

Definition at line 42 of file rpmurl.h.

Referenced by ftpLogin(), httpReq(), urlConnect(), urlFind(), urlSplit(), and XurlFree().

const char* urlinfo_s::portstr

URI port string.

Definition at line 44 of file rpmurl.h.

Referenced by urlFind(), urlSplit(), and XurlFree().

const char* urlinfo_s::proxyu

FTP: proxy user

Definition at line 46 of file rpmurl.h.

Referenced by ftpLogin(), urlFind(), and XurlFree().

const char* urlinfo_s::proxyh

FTP/HTTP: proxy host

Definition at line 48 of file rpmurl.h.

Referenced by ftpLogin(), httpReq(), urlFind(), and XurlFree().

int urlinfo_s::proxyp

FTP/HTTP: proxy port

Definition at line 49 of file rpmurl.h.

Referenced by ftpLogin(), httpReq(), urlFind(), and XurlNew().

int urlinfo_s::port

URI port.

Definition at line 50 of file rpmurl.h.

Referenced by ftpLogin(), httpReq(), urlSplit(), and XurlNew().

int urlinfo_s::urltype

URI type.

Definition at line 51 of file rpmurl.h.

Referenced by ufdClose(), urlConnect(), urlFind(), urlSplit(), and XurlNew().

FD_t urlinfo_s::ctrl

control channel

Definition at line 52 of file rpmurl.h.

Referenced by ftpAbort(), ftpCheckResponse(), ftpCmd(), ftpCommand(), ftpFileDone(), ftpLogin(), ftpReq(), ufdClose(), urlConnect(), XurlFree(), and XurlNew().

FD_t urlinfo_s::data

per-xfer data channel

Definition at line 53 of file rpmurl.h.

Referenced by ftpOpen(), ufdClose(), XurlFree(), and XurlNew().

void* urlinfo_s::capabilities

neon: ne_server_capabilities ptr

Definition at line 56 of file rpmurl.h.

void* urlinfo_s::lockstore

neon: ne_lock_store ptr

Definition at line 58 of file rpmurl.h.

void* urlinfo_s::sess

neon: ne_session ptr

Definition at line 60 of file rpmurl.h.

off_t urlinfo_s::current

neon: current body offset.

Definition at line 61 of file rpmurl.h.

off_t urlinfo_s::total

neon: total body length.

Definition at line 62 of file rpmurl.h.

int urlinfo_s::connstatus

neon: connection status.

Definition at line 63 of file rpmurl.h.

int urlinfo_s::bufAlloced

sizeof I/O buffer

Definition at line 73 of file rpmurl.h.

Referenced by checkResponse(), ftpAbort(), and XurlNew().

char* urlinfo_s::buf

I/O buffer

Definition at line 75 of file rpmurl.h.

Referenced by checkResponse(), ftpAbort(), XurlFree(), and XurlNew().

int urlinfo_s::openError

Type of open failure

Definition at line 76 of file rpmurl.h.

Referenced by ftpNLST(), ufdOpen(), urlConnect(), and urlStrerror().

int urlinfo_s::httpVersion

Definition at line 77 of file rpmurl.h.

Referenced by checkResponse(), httpReq(), and XurlNew().

int urlinfo_s::allow

Definition at line 78 of file rpmurl.h.

Referenced by checkResponse(), and XurlNew().

int urlinfo_s::magic

Definition at line 85 of file rpmurl.h.

Referenced by XurlNew().

The documentation for this struct was generated from the following file:

- rpmio/rpmurl.h