📄 suspendsession.c
字号:
// Copyright (c) 1999-2001 David Muse// See the file COPYING for more information#include <sqlrelay/sqlrclient.h>#include <defines.h>bool sqlrconnection::suspendSession() { if (!openSession()) { return 0; } if (debug) { debugPreStart(); debugPrint("Suspending Session\n"); debugPreEnd(); } // suspend the session bool retval=false; cs->write((uint16_t)SUSPEND_SESSION); flushWriteBuffer(); suspendsessionsent=true; retval=true; // If the server is passing around file descriptors to handoff clients // from listener to connection, then it will have to open a socket and // port to enable suspend/resume. It will pass that socket/port to // us here. if (!reconnect) { retval=getNewPort(); } closeConnection(); return retval;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -