| 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 | { |
nothing calls this directly
no test coverage detected