#include "sPacket.h"
#include "cSocket.h"
#include "sSocket.h"

int sSocket::count = 0;
sSocket         ::sSocket  (class cSocket *FD):cSocket(FD) {{{
	Type = tSocket;
	ulCount = dlCount = 0;
	READ = new sPacket ();
	count ++;
	}}}
sSocket         ::sSocket  (in_addr ip, uint16_t port):cSocket(ip.s_addr, port, SOCK_STREAM) {{{
	Type = tSocket;
	ulCount = dlCount = 0;
	READ = new sPacket ();
	count ++;
	}}}
sSocket         ::~sSocket (void) {{{
	count --;
	if (READ != NULL) delete READ;
	}}}
bool	    sSocket::canWork  (void) { return READ->status == 9; }
int      sSocket::doRead_high (void) { return READ->Read(this);  }
/*
 * vim600: fdm=marker
 */

