We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 516bce0 commit 04dfc06Copy full SHA for 04dfc06
vm/src/stdlib/socket.rs
@@ -564,6 +564,12 @@ pub fn make_module(vm: &VirtualMachine) -> PyObjectRef {
564
"MSG_WAITALL" => ctx.new_int(c::MSG_WAITALL),
565
"AI_ALL" => ctx.new_int(c::AI_ALL),
566
"AI_PASSIVE" => ctx.new_int(c::AI_PASSIVE),
567
+ "IPPROTO_TCP" => ctx.new_int(c::IPPROTO_TCP),
568
+ "IPPROTO_UDP" => ctx.new_int(c::IPPROTO_UDP),
569
+ "IPPROTO_IP" => ctx.new_int(c::IPPROTO_IP),
570
+ "IPPROTO_IPIP" => ctx.new_int(c::IPPROTO_IP),
571
+ "IPPROTO_IPV6" => ctx.new_int(c::IPPROTO_IPV6),
572
+ "IPPROTO_NONE" => ctx.new_int(c::IPPROTO_NONE),
573
"socket" => PySocket::make_class(ctx),
574
"inet_aton" => ctx.new_rustfunc(socket_inet_aton),
575
"inet_ntoa" => ctx.new_rustfunc(socket_inet_ntoa),
0 commit comments