ED2KPacket::StartUploadReq Class Reference

StartUploadReq finalizes the upload request sequence. More...

#include <packets.h>

Inheritance diagram for ED2KPacket::StartUploadReq:

ED2KPacket::Packet List of all members.

Public Member Functions

 StartUploadReq ()
 StartUploadReq (const Hash< ED2KHash > &h)
 StartUploadReq (std::istream &i)
 operator std::string ()
Hash< ED2KHash > getHash () const

Private Attributes

Hash< ED2KHash > m_hash
 Optional.

Detailed Description

StartUploadReq finalizes the upload request sequence.

It may optionally contain the requested file hash. Upon receiving this packet, the uploading client must insert the requesting client into it's upload queue and/or start uploading. The responses to this packet are thus QueueRanking or AcceptUploadReq.

Note:
Sending hash in this packet is optional!

Definition at line 720 of file packets.h.


Constructor & Destructor Documentation

ED2KPacket::StartUploadReq::StartUploadReq  ) 
 

Definition at line 924 of file packets.cpp.

ED2KPacket::StartUploadReq::StartUploadReq const Hash< ED2KHash > &  h  ) 
 

Definition at line 925 of file packets.cpp.

ED2KPacket::StartUploadReq::StartUploadReq std::istream &  i  ) 
 

Definition at line 926 of file packets.cpp.

References m_hash.


Member Function Documentation

ED2KPacket::StartUploadReq::operator std::string  ) 
 

Definition at line 932 of file packets.cpp.

References m_hash, ED2KPacket::Packet::makePacket(), and OP_STARTUPLOADREQ.

Hash<ED2KHash> ED2KPacket::StartUploadReq::getHash  )  const [inline]
 

Definition at line 727 of file packets.h.

References m_hash.


Member Data Documentation

Hash<ED2KHash> ED2KPacket::StartUploadReq::m_hash [private]
 

Optional.

Definition at line 729 of file packets.h.

Referenced by getHash(), operator std::string(), and StartUploadReq().


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