enc cleanup

This commit is contained in:
Marcos Pinto 2007-06-07 07:59:16 +00:00
parent 32c2a6efa8
commit 8d30cbd9c1
1 changed files with 5 additions and 0 deletions

View File

@ -1232,6 +1232,11 @@ static PyObject *torrent_pe_settings(PyObject *self, PyObject *args)
M_pe_settings->prefer_rc4 = int(s.prefer_rc4); M_pe_settings->prefer_rc4 = int(s.prefer_rc4);
printf("prefer rc4 is %d\r\n", s.prefer_rc4); printf("prefer rc4 is %d\r\n", s.prefer_rc4);
M_ses->set_pe_settings(*M_pe_settings); M_ses->set_pe_settings(*M_pe_settings);
return Py_BuildValue("{s:i,s:i,s:i,s:i}",
"out_enc_policy", int(s.out_enc_policy),
"in_enc_policy", int(s.in_enc_policy),
"allowed_enc_level", int(s.allowed_enc_level),
"prefer_rc4", int(s.prefer_rc4));
} }
//==================== //====================