sendfield.c

来自「适合于Unix/Linux下的一个持久数据库连接池」· C语言 代码 · 共 52 行

C
52
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?