00001 #include "Headers.h"
00002 #include "ConnectionEntry.h"
00003
00004 CConnectionEntry::CConnectionEntry()
00005 {
00006 this->next = NULL;
00007 this->prev = NULL;
00008 this->connection = NULL;
00009 this->entry = 0;
00010 this->state = FREE;
00011 }
00012
00013 void CConnectionEntry::Free()
00014 {
00015 this->state = FREE;
00016 this->connection = NULL;
00017 }
00018
00019 void CConnectionEntry::Alloc()
00020 {
00021 this->state = ALLOC;
00022 this->connection = NULL;
00023 }
00024
00025 void CConnectionEntry::Assign(CConnection* connection)
00026 {
00027 this->state = ASSIGNED;
00028 this->connection = connection;
00029 }