Skip to content

Commit

Permalink
remove snappy & flatbuffer source code , modf dub.json : "dlang-snapp…
Browse files Browse the repository at this point in the history
…y": "~>0.0.1", "flatbuffers": "~>0.1.1", "kiss" : "~>0.0.7",
  • Loading branch information
noclear committed Sep 1, 2017
1 parent 39155fb commit 76f67b7
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 926 deletions.
10 changes: 4 additions & 6 deletions dub.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@
],

"dependencies": {
"kiss":{
"path" :"../kiss/"
}
"dlang-snappy": "~>0.0.1",
"flatbuffers": "~>0.1.1",
"kiss" : "~>0.0.7",
},

"license": "Apache-2.0",
"lflags":["-L/usr/local/lib"],
"libs":["snappy"]
"license": "Apache-2.0"
}
2 changes: 1 addition & 1 deletion source/KissRpc/RpcBinaryPackage.d
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import KissRpc.Endian;
import KissRpc.Unit;
import KissRpc.Logs;

import util.snappy;
import snappy.snappy;
import std.stdio;

enum RPC_PACKAGE_STATUS_CODE
Expand Down
7 changes: 4 additions & 3 deletions source/KissRpc/RpcClientSocket.d
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,21 @@ public:
return true;
}
override void onConnectCompleted(void* attachment) {
_socketEventDelegate.socketEvent(this, SOCKET_STATUS.SE_CONNECTD, "connect to server is ok!");
doRead();
_socketEventDelegate.socketEvent(this, SOCKET_STATUS.SE_CONNECTD, "connect to server is ok!");
}
override void onConnectFailed(void* attachment) {
writeln("onConnectFailed");
}
override void onWriteCompleted(void* attachment, size_t count , ByteBuffer buffer) {
// writeln("write success index ",index++);
// writeln("write success index ",index);
}
override void onWriteFailed(void* attachment) {
// writeln("onWriteFailed");
writeln("onWriteFailed");
_socketEventDelegate.socketEvent(this, SOCKET_STATUS.SE_WRITE_FAILED, "write data to server is failed");
}
override void onReadCompleted(void* attachment, size_t count , ByteBuffer buffer) {

_packageManage.add(cast(ubyte[])(buffer.getCurBuffer()));
_readBuffer.clear();
}
Expand Down
165 changes: 0 additions & 165 deletions source/flatbuffers/bytebuffer.d

This file was deleted.

51 changes: 0 additions & 51 deletions source/flatbuffers/exception.d

This file was deleted.

Loading

0 comments on commit 76f67b7

Please sign in to comment.