libktorrent  2.2.0
Public Member Functions | Protected Attributes | List of all members
bt::Pipe Class Reference

#include <pipe.h>

Inheritance diagram for bt::Pipe:
Inheritance graph
[legend]

Public Member Functions

int read (Uint8 *buffer, int max_len)
 Read data from the read end of the pipe.
 
int readerSocket () const
 Get the reader socket.
 
int write (const Uint8 *data, int len)
 Write data to the write end of the pipe.
 
int writerSocket () const
 Get the writer socket.
 

Protected Attributes

int reader
 
int writer
 

Detailed Description

Cross platform pipe implementation, uses socketpair on unix and a TCP connection over the localhost in windows.

Definition at line 33 of file pipe.h.


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