⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sendfield.c

📁 适合于Unix/Linux下的一个持久数据库连接池
💻 C
字号:
// Copyright (c) 1999-2001  David Muse// See the file COPYING for more information#include <sqlrconnection.h>void sqlrconnection_svr::sendField(const char *data, uint32_t size) {	#ifdef SERVER_DEBUG	debugstr->append("\"");	debugstr->append(data,size);	debugstr->append("\",");	#endif	clientsock->write((uint16_t)STRING_DATA);	clientsock->write(size);	clientsock->write(data,size);}void sqlrconnection_svr::sendNullField() {	#ifdef SERVER_DEBUG	debugstr->append("NULL");	#endif	clientsock->write((uint16_t)NULL_DATA);}void sqlrconnection_svr::startSendingLong(uint64_t longlength) {	clientsock->write((uint16_t)START_LONG_DATA);	clientsock->write(longlength);}void sqlrconnection_svr::sendLongSegment(const char *data, uint32_t size) {	#ifdef SERVER_DEBUG	debugstr->append(data,size);	#endif	clientsock->write((uint16_t)STRING_DATA);	clientsock->write(size);	clientsock->write(data,size);}void sqlrconnection_svr::endSendingLong() {	#ifdef SERVER_DEBUG	debugstr->append(",");	#endif	clientsock->write((uint16_t)END_LONG_DATA);}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -