---
name: "oftpstream"
section: "3cc"
platform: "linux"
package: "libcommoncpp2-dev"
version: "1.0.13-5"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/oftpstream"
---

# oftpstream(3cc)

oftpstream is a outputstream to a remote file

## NAME

oftpstream - oftpstream is a outputstream to a remote file

## SYNOPSIS

`#include <ftp.h>`

Inherits **tcpstream**.

### Public Methods

**oftpstream** (**FTPSocket** &f, string rfilename, int buffer=512, **timeout\_t** to=0)\
 *constructor* **~oftpstream** ()\
 *destructor; ends transmission* void **close** ()\
 *ends transmission*

### Protected Attributes

**FTPSocket** & **ftpref**\

## DETAILED DESCRIPTION

oftpstream is a outputstream to a remote file

## CONSTRUCTOR & DESTRUCTOR DOCUMENTATION

### oftpstream::oftpstream (FTPSocket & f, string rfilename, int buffer = 512, timeout\_t to = 0)

constructor

create a oftpstream to host with filename rfilename

### oftpstream::~oftpstream ()` [inline]`

destructor; ends transmission

## MEMBER FUNCTION DOCUMENTATION

### void oftpstream::close ()

ends transmission

Reimplemented from **tcpstream**.

## MEMBER DATA DOCUMENTATION

### FTPSocket& oftpstream::ftpref` [protected]`

## AUTHOR

Generated automatically by Doxygen for CommonC++ from the source code.
