1
This commit is contained in:
parent
a2e3b63feb
commit
9a13342b50
@ -12,6 +12,16 @@ enum CMMessageId_e
|
|||||||
_CMFriendAgree = 106;
|
_CMFriendAgree = 106;
|
||||||
_CMFriendIgnore = 107;
|
_CMFriendIgnore = 107;
|
||||||
_CMFriendDelete = 108;
|
_CMFriendDelete = 108;
|
||||||
|
_CMFriendApply = 109;
|
||||||
|
_CMFriendApplyList = 110;
|
||||||
|
_CMFriendBlackList = 111;
|
||||||
|
_CMFriendAddBlack = 112;
|
||||||
|
_CMFriendDeleteBlack = 113;
|
||||||
|
|
||||||
|
_CMSendChatMsg = 151;
|
||||||
|
_CMSendCustomMsg = 152;
|
||||||
|
_CMUpdateTempCustomData = 153;
|
||||||
|
_CMUpdateUserInfo = 154;
|
||||||
|
|
||||||
_CMGroupCreate = 201;
|
_CMGroupCreate = 201;
|
||||||
_CMGroupJoin = 202;
|
_CMGroupJoin = 202;
|
||||||
@ -34,6 +44,11 @@ enum SMMessageId_e
|
|||||||
_SMFriendAgree = 106;
|
_SMFriendAgree = 106;
|
||||||
_SMFriendIgnore = 107;
|
_SMFriendIgnore = 107;
|
||||||
_SMFriendDelete = 108;
|
_SMFriendDelete = 108;
|
||||||
|
_SMFriendApply = 109;
|
||||||
|
_SMFriendApplyList = 110;
|
||||||
|
_SMFriendBlackList = 111;
|
||||||
|
_SMFriendAddBlack = 112;
|
||||||
|
_SMFriendDeleteBlack = 113;
|
||||||
|
|
||||||
_SMGroupCreate = 201;
|
_SMGroupCreate = 201;
|
||||||
_SMGroupJoin = 202;
|
_SMGroupJoin = 202;
|
||||||
@ -43,6 +58,8 @@ enum SMMessageId_e
|
|||||||
_SMGroupDismiss = 206;
|
_SMGroupDismiss = 206;
|
||||||
_SMGroupRename = 207;
|
_SMGroupRename = 207;
|
||||||
|
|
||||||
_SMUserStatusNotify = 1001;
|
_SMUserStatusNotify = 501;
|
||||||
_SMUserInfoUpdate = 1002;
|
_SMUserInfoUpdate = 502;
|
||||||
|
_SMCustomMsgNotify = 503;
|
||||||
|
_SMUserTempCustomDataUpdate = 504;
|
||||||
}
|
}
|
||||||
|
@ -21,10 +21,10 @@ def main():
|
|||||||
help = "account info")
|
help = "account info")
|
||||||
(options, args) = parser.parse_args()
|
(options, args) = parser.parse_args()
|
||||||
|
|
||||||
ws_url = args if args else 'ws://192.168.100.21:7101/websocket'
|
ws_url = args if args else 'wss://relation-test.kingsome.cn/friend/websocket'
|
||||||
accounts = options.accounts.split(',')
|
accounts = options.accounts.split(',')
|
||||||
accounts = []
|
accounts = []
|
||||||
for i in range(500):
|
for i in range(1):
|
||||||
accounts.append('test' + str(i))
|
accounts.append('test' + str(i))
|
||||||
for account in accounts:
|
for account in accounts:
|
||||||
ioloop.IOLoop.current().spawn_callback(createVirtualClient, account, ws_url)
|
ioloop.IOLoop.current().spawn_callback(createVirtualClient, account, ws_url)
|
||||||
|
@ -64,10 +64,8 @@ class VirtualClient(object):
|
|||||||
print('')
|
print('')
|
||||||
|
|
||||||
def sendLogin(self, conn):
|
def sendLogin(self, conn):
|
||||||
msg = cs_proto_pb2.CMJoin()
|
msg = cs_proto_pb2.CMLogin()
|
||||||
msg.server_id = 2
|
|
||||||
msg.account_id = self.account
|
msg.account_id = self.account
|
||||||
msg.baseskin = 14001
|
|
||||||
self.sendMsg(conn, msg)
|
self.sendMsg(conn, msg)
|
||||||
|
|
||||||
def parsePacket(self, conn, recv_buf):
|
def parsePacket(self, conn, recv_buf):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user