Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

Packet.h File Reference

Go to the source code of this file.

Defines

#define AFX_PACKET_H__3094C1CC_8AD2_49BD_BF10_EA639A9EAE6F__INCLUDED_
#define SWAP_SHORT(x)   ( ( ( (x) & 0xFF00 ) >> 8 ) + ( ( (x) & 0x00FF ) << 8 ) )
#define SWAP_LONG(x)   ( ( ( (x) & 0xFF000000 ) >> 24 ) + ( ( (x) & 0x00FF0000 ) >> 8 ) + ( ( (x) & 0x0000FF00 ) << 8 ) + ( ( (x) & 0x000000FF ) << 24 ) )
#define SWAP_64(x)   ( ( SWAP_LONG( (x) & 0xFFFFFFFF ) << 32 ) | SWAP_LONG( (x) >> 32 ) )
#define PACKET_GROW   128
#define PACKET_BUF_SCHAR   127
#define PACKET_BUF_WCHAR   127
#define SHAREAZA_VENDOR_A   VENDOR_CODE
#define SHAREAZA_VENDOR_T   _T( VENDOR_CODE )


Define Documentation

#define AFX_PACKET_H__3094C1CC_8AD2_49BD_BF10_EA639A9EAE6F__INCLUDED_
 

Definition at line 27 of file Packet.h.

#define PACKET_BUF_SCHAR   127
 

Definition at line 45 of file Packet.h.

Referenced by CPacket::WriteString(), CG2Packet::WriteString(), and CPacket::WriteStringUTF8().

#define PACKET_BUF_WCHAR   127
 

Definition at line 46 of file Packet.h.

#define PACKET_GROW   128
 

Definition at line 42 of file Packet.h.

Referenced by CPacket::Ensure(), CPacket::Write(), and CPacket::WriteGetPointer().

#define SHAREAZA_VENDOR_A   VENDOR_CODE
 

Definition at line 49 of file Packet.h.

Referenced by CLocalSearch::CreatePacketG2(), CG2Neighbour::SendHAW(), and CG2Neighbour::SendLNI().

#define SHAREAZA_VENDOR_T   _T( VENDOR_CODE )
 

Definition at line 50 of file Packet.h.

Referenced by CG1Neighbour::OnClusterAdvisor(), CShakeNeighbour::OnHeaderLine(), CG1Neighbour::OnPong(), and CLocalSearch::WriteTrailerG1().

#define SWAP_64  )     ( ( SWAP_LONG( (x) & 0xFFFFFFFF ) << 32 ) | SWAP_LONG( (x) >> 32 ) )
 

Definition at line 39 of file Packet.h.

Referenced by CPacket::ReadInt64(), and CPacket::WriteInt64().

#define SWAP_LONG  )     ( ( ( (x) & 0xFF000000 ) >> 24 ) + ( ( (x) & 0x00FF0000 ) >> 8 ) + ( ( (x) & 0x0000FF00 ) << 8 ) + ( ( (x) & 0x000000FF ) << 24 ) )
 

Definition at line 36 of file Packet.h.

Referenced by CLibraryBuilder::DetectVirtualID3v2(), CBTPacket::ReadBuffer(), CLibraryBuilderInternals::ReadID3v2(), CPacket::ReadLongBE(), CLibraryBuilderInternals::ReadPNG(), CBuffer::ReverseBuffer(), CLibraryBuilderInternals::ScanMP3Frame(), CUploadTransferBT::ServeRequests(), CBTPacket::ToBuffer(), and CPacket::WriteLongBE().

#define SWAP_SHORT  )     ( ( ( (x) & 0xFF00 ) >> 8 ) + ( ( (x) & 0x00FF ) << 8 ) )
 

Definition at line 33 of file Packet.h.

Referenced by CPacket::ReadShortBE(), and CPacket::WriteShortBE().


Generated on Thu Dec 15 10:39:57 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2