My solution My solution What solution did you come up with? Here’s mine: #![ deny ( unsafe_code )] #![ no_main ] #![ no_std ] use aux5 ::{ entry , prelude ::*, De...
Is it my desk? Is it my desk? Nope. Not in a strict way, at least. Let’s be positive and say that it’s as yours as any other in here. Start sitting at any free desk you find. O...
Is my Application Readable? Is my Application Readable? Users should be able to read and understand the information presented by your application. Your application should also ...
RPC on my server 下面是之前我们给出的tcpserver中的一个函数,用来处理连接 build_class之前我们说过,这是我们用来处理数据的protocol,那么rpc的逻辑流程应该都写在这里。现在假设client来调用一个函数sum(x, y), 那么在我们server中就要有这样一个函数。 RPC on my server ...
RPC on my client 服务器调用client函数也是一样的道理,client中也要和服务器一样,将想要被调用的函数收集起来。当然这个时候,服务器还要做一件事情,就是将客户端的tcp连接通过某种条件储存起来,这样才知道我想去调用哪个client的函数。 现在有很多client来连接我们server,以游戏为例,每个玩家都有自己对应的uid,那么我...