Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <vsnet_notify.h>
Public Member Functions | |
Buffer (SOCKETALT sock, const std::string &filename, VSFileSystem::VSFileType ft) | |
virtual | ~Buffer () |
boost::shared_array< uchar > | getBuffer () const |
int | getSize () |
bool | done () const |
bool | ok () const |
int | total () const |
int | offset () const |
![]() | |
Item (SOCKETALT sock, const std::string &filename, VSFileSystem::VSFileType=VSFileSystem::UnknownFile, NotifyPtr notify=NotifyPtr()) | |
virtual | ~Item () |
State | state () const |
VSError | error () const |
void | changeState (State s) |
void | changeState (State s, VSError e) |
void | setFileType (VSFileSystem::VSFileType ft) |
VSFileSystem::VSFileType | getFileType () |
void | setSize (int len) |
void | append (unsigned char *buffer, int bufsize) |
const std::string & | getFilename () const |
SOCKETALT | getSock () const |
int | get_fd () const |
Protected Member Functions | |
virtual void | childSetSize (int len) |
virtual void | childAppend (unsigned char *buffer, int bufsize) |
![]() | |
void | protected_replace_notifier (NotifyPtr ptr) |
Additional Inherited Members | |
![]() | |
VSFileSystem::VSFileType | _filetype |
Definition at line 283 of file vsnet_notify.h.
VsnetDownload::Client::Buffer::Buffer | ( | SOCKETALT | sock, |
const std::string & | filename, | ||
VSFileSystem::VSFileType | ft | ||
) |
Definition at line 233 of file vsnet_notify.cpp.
References VsnetDownload::Client::Item::protected_replace_notifier().
|
virtual |
Definition at line 242 of file vsnet_notify.cpp.
|
protectedvirtual |
Implements VsnetDownload::Client::Item.
Definition at line 257 of file vsnet_notify.cpp.
References buffer, bufsize, and VsnetOSS::memcpy().
|
protectedvirtual |
Implements VsnetDownload::Client::Item.
Definition at line 250 of file vsnet_notify.cpp.
|
inline |
Definition at line 303 of file vsnet_notify.h.
References VsnetDownload::Client::NotifyMe::done().
Referenced by NetClient::downloadZoneInfo().
boost::shared_array< Buffer::uchar > VsnetDownload::Client::Buffer::getBuffer | ( | ) | const |
Definition at line 245 of file vsnet_notify.cpp.
Referenced by NetClient::downloadZoneInfo().
|
inline |
Definition at line 298 of file vsnet_notify.h.
Referenced by NetClient::downloadZoneInfo().
|
inline |
Definition at line 318 of file vsnet_notify.h.
References VsnetDownload::Client::NotifyMe::offset().
|
inline |
Definition at line 308 of file vsnet_notify.h.
References VsnetDownload::Client::NotifyMe::ok().
|
inline |
Definition at line 313 of file vsnet_notify.h.
References VsnetDownload::Client::NotifyMe::total().