PacketFree Class Reference

#include <Network.h>

Inheritance diagram for PacketFree:

Inheritance graph
[legend]
Collaboration diagram for PacketFree:

Collaboration graph
[legend]

Public Member Functions

 PacketFree ()
 ~PacketFree ()
DbRetVal marshall ()
DbRetVal unmarshall ()

Data Fields

int stmtID

Detailed Description

Definition at line 174 of file Network.h.


Constructor & Destructor Documentation

PacketFree::PacketFree (  )  [inline]

Definition at line 177 of file Network.h.

References BasePacket::buffer, BasePacket::bufferSize, NW_PKT_FREE, and BasePacket::pktType.

00177 { buffer=NULL; bufferSize =0; pktType = NW_PKT_FREE;}

PacketFree::~PacketFree (  )  [inline]

Definition at line 178 of file Network.h.

References BasePacket::buffer, and BasePacket::bufferSize.

00178 { free(buffer); bufferSize = 0; buffer = NULL; }


Member Function Documentation

DbRetVal PacketFree::marshall (  )  [virtual]

Implements BasePacket.

Definition at line 77 of file NetworkPacket.cxx.

References BasePacket::buffer, BasePacket::bufferSize, OK, and stmtID.

00078 {
00079     bufferSize  = sizeof(int);
00080     buffer = (char*) malloc(bufferSize);
00081     *(int*)buffer = stmtID;
00082     return OK;
00083 }

DbRetVal PacketFree::unmarshall (  )  [virtual]

Implements BasePacket.

Definition at line 84 of file NetworkPacket.cxx.

References BasePacket::buffer, OK, and stmtID.

Referenced by SqlNetworkHandler::processFree().

00085 {
00086     stmtID = *(int*)buffer;
00087     return OK;
00088 }

Here is the caller graph for this function:


Field Documentation

int PacketFree::stmtID

Definition at line 179 of file Network.h.

Referenced by marshall(), and unmarshall().


The documentation for this class was generated from the following files:
Generated on Mon Jun 9 22:49:31 2008 for csql by  doxygen 1.4.7