Ai
4 Star 1 Fork 0

Gitee 极速下载/facebook-mysql

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/facebook/mysql-5.6
克隆/下载
viotest.cc 1.77 KB
一键复制 编辑 原始数据 按行查看 历史
Sven Sandberg 提交于 2022-04-28 15:14 +08:00 . Merged BUG#33764808 from 5.7 to 8.0.
/*
Copyright (c) 2000, 2022, Oracle and/or its affiliates.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2.0,
as published by the Free Software Foundation.
This program is also distributed with certain software (including
but not limited to OpenSSL) that is licensed under separate terms,
as designated in a particular file or component or in included license
documentation. The authors of MySQL hereby grant you an additional
permission to link the program and your derivative works with the
separately licensed software that they have included with MySQL.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License, version 2.0, for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
#include "all.h"
#include <stdio.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <string.h>
VIO_NS_USING;
int main(int argc, char **argv) {
VioFd *fs = 0;
VioSocket *ss = 0;
int fd = -1;
char *hh = "hshshsh\n";
DBUG_TRACE;
DBUG_PROCESS(argv[0]);
DBUG_PUSH("d:t");
fd = open("/dev/tty", O_WRONLY);
if (fd < 0) {
perror("open");
return 1;
}
fs = new VioFd(fd);
ss = new VioSocket(fd);
if (fs->write(hh, strlen(hh)) < 0) perror("write");
ss->write(hh, strlen(hh));
printf("peer_name:%s\n", ss->peer_name());
printf("cipher_description:%s\n", ss->cipher_description());
delete fs;
delete ss;
return 0;
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors/facebook-mysql.git
git@gitee.com:mirrors/facebook-mysql.git
mirrors
facebook-mysql
facebook-mysql
fb-mysql-8.0.32

搜索帮助