我必须移植现有的Win API应用程序才能使用TCPv6。无法弄清楚如何将套接字绑定到localhost。
早些时候是:
from django.shortcuts import render
from django.http import HttpResponse
from django.contrib.auth.models import User
def register(request):
user = User.objects.create_user('John', 'lennon@thebeatles.com', 'johnpassword')
user.last_name = "James"
user.is_active = True
status = user.save()
return HttpResponse(status)

现在,我正在尝试:
None

并且bind返回SOCKET_ERROR
MS https://msdn.microsoft.com/en-us/library/windows/desktop/ms737937%28v=vs.85%29.aspx有一个页面,但没有绑定示例
答案 0 :(得分:1)
我认为你想要做的是:
for (job in jenkins.model.Jenkins.theInstance.getProjects()) {
if (job.name.startsWith("Data_jobs_")) {
job.delete()
}
else if (job.name.startsWith("Data_jobs_server")) {
job.disable()
}
}