throughput.ice
来自「ICE-3.2 一个开源的中间件」· ICE 代码 · 共 65 行
ICE
65 行
// **********************************************************************//// Copyright (c) 2003-2007 ZeroC, Inc. All rights reserved.//// This copy of Ice is licensed to you under the terms described in the// ICE_LICENSE file included in this distribution.//// **********************************************************************#ifndef THROUGHPUT_ICE#define THROUGHPUT_ICEmodule Demo{sequence<byte> ByteSeq;const int ByteSeqSize = 500000;sequence<string> StringSeq;const int StringSeqSize = 50000;struct StringDouble{ string s; double d;};sequence<StringDouble> StringDoubleSeq;const int StringDoubleSeqSize = 50000;struct Fixed{ int i; int j; double d;};sequence<Fixed> FixedSeq;const int FixedSeqSize = 50000;interface Throughput{ void endWarmup(); void sendByteSeq(["cpp:array"] ByteSeq seq); ByteSeq recvByteSeq(); ByteSeq echoByteSeq(ByteSeq seq); void sendStringSeq(StringSeq seq); StringSeq recvStringSeq(); StringSeq echoStringSeq(StringSeq seq); void sendStructSeq(StringDoubleSeq seq); StringDoubleSeq recvStructSeq(); StringDoubleSeq echoStructSeq(StringDoubleSeq seq); void sendFixedSeq(FixedSeq seq); FixedSeq recvFixedSeq(); FixedSeq echoFixedSeq(FixedSeq seq); idempotent void shutdown();};};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?