MCPcopy Create free account
hub / github.com/e2wugui/zeze / ProcessSHandshake0

Method ProcessSHandshake0

cxx/Net.cpp:226–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224 }
225
226 int Service::ProcessSHandshake0(Protocol* _p)
227 {
228 SHandshake0* p = (SHandshake0*)_p;
229 if (p->Argument->encryptType != Constant::eEncryptTypeDisable
230 || p->Argument->compressS2c != Constant::eCompressTypeDisable
231 || p->Argument->compressC2s != Constant::eCompressTypeDisable)
232 {
233 StartHandshake(p->Argument->encryptType, p->Argument->compressS2c, p->Argument->compressC2s, p->Sender);
234 //std::cout << "StartHandshake " << p->Argument->encryptType << std::endl;
235 }
236 else
237 {
238 CHandshakeDone done;
239 done.Send(p->Sender.get());
240 OnHandshakeDone(p->Sender);
241 //std::cout << "HandshakeDone " << p->Argument->encryptType << std::endl;
242 }
243 return 0;
244 }
245
246 int Service::ProcessSHandshake(Protocol* _p)
247 {

Callers

nothing calls this directly

Calls 3

getMethod · 0.65
OnHandshakeDoneFunction · 0.50
SendMethod · 0.45

Tested by

no test coverage detected