AspSocket.dll文件下载与asp代码实例_常用工具

<!--#include file="public.asp"-->
<!--#include file="err.asp"-->
<%
'编程者:杨荣灿
'内容:SOCKET发送及接收EPP命令类定义
'汲及表:无

%>
    <%'###########################################################'%>
    <%'#                     socketclient                     #'%>
    <%'#                  客户端SOCKET                     #'%>
    <%'#                                                 #'%>
    <%'###########################################################'%>
<%

class socketclient
public socket
public tempxml
'public clID,pwd
public re_server,send_client
public user_id
public err_msg
public err_code

'---------------------------------
'    tcp连接
'---------------------------------
function socket_conn(host,port)

on error resume next
Set socket = CreateObject("ASPSocket.MySocket")
    socket.Create 
    socket.Connect host,port 

    
        socket.SendTimeOut = 10000
        socket.RecvTimeOut = 10000
        socket.receive(2048)
                socket_conn =0
                err_code=0

end function
'-------------------------------------
'    socket读取socket_read()
'-------------------------------------
public function socket_read(i)
socket_read=Socket.receive(i)
end function

'-------------------------------------
'    用户连接socket_login()
'-------------------------------------
public function socket_login(clID,pwd)
on error resume next
dim strtemp1
dim clTRID
clTRID=now()&clTRID_create()
strtemp1="<?xml version="&chr(34)&"1.0"&chr(34)&" encoding="&chr(34)&"UTF-8"&chr(34)&" standalone="&chr(34)&"no"&chr(34)&"?>"
strtemp1=strtemp1&"<epp><command><creds><clID>"
strtemp1=strtemp1&clID
strtemp1=strtemp1&"</clID><options><version>1.0</version><lang>en</lang></options></creds><clTRID>"
strtemp1=strtemp1&clTRID
strtemp1=strtemp1&"</clTRID><login><chksum>"
strtemp1=strtemp1&md5(clID&md5(pwd)&clTRID&"login")
strtemp1=strtemp1&"</chksum></login></command></epp>"
socket.send strtemp1 
send_client=strtemp1
re_server=socket.receive(2048)
if not find_msg(re_server)=1000 then
socket_login=find_msg(re_server)&socket_err(find_msg(re_server))
err_msg=find_msg(re_server)
err_code=5000
else
err_code=0
end if
end function
'-------------------------------------
'    用户退出socket_logout
'-------------------------------------
function socket_logout(clID,pwd)
on error resume next
dim strtemp2
dim clTRID
clTRID=now()&clTRID_create()
strtemp2 = "<?xml version="&chr(34)&"1.0"&chr(34)&"encoding="&chr(34)&"UTF-8"&chr(34)&" standalone="&chr(34)&"no"&chr(34)&"?>"
strtemp2 = strtemp2&"<epp><command><logout/><unspec/><clTRID>"
strtemp2 = strtemp2&clTRID
strtemp2 = strtemp2&"</clTRID><chksum>"
strtemp2 = strtemp2&md5(clID&md5(pwd)&clTRID&"logout")&"</chksum></command></epp>"
 socket.send strtemp2
re_server=socket.receive(2048)
socket_logout=find_msg(re_server)&socket_err(find_msg(re_server))

end function

'----------------------------------------
'    创建联系人socket_create_contactor
'----------------------------------------
public function socket_create_contactor(clID,pwd,domaintype,name,name_m,org,org_m,street1,street2,city,sp,pc,cc,voice,fax,email,pw,apppurpose,nexuscategory)
on error resume next
dim strtemp3
dim clTRID
clTRID=now()&clTRID_create()
strtemp3 = "<?xml version="&chr(34)&"1.0"&chr(34)&" encoding="&chr(34)&"UTF-8"&chr(34)&" standalone="&chr(34)&"no"&chr(34)&" ?>"
strtemp3 = strtemp3&"<epp xmlns="&chr(34)&"urn:iana:xml:ns:epp-1.0"&chr(34)&" xmlns:xsi="&chr(34)&"http://www.w3.org/2001/XMLSchema-instance"&chr(34)&" xsi:schemaLocation="&chr(34)&"urn:iana:xml:ns:epp-1.0 epp-1.0.xsd"&chr(34)&">"
strtemp3 = strtemp3&"<command><create><contact:create xmlns:contact="&chr(34)&"urn:iana:xml:ns:contact-1.0"&chr(34)&" xsi:schemaLocation="&chr(34)&"urn:iana:xml:ns:con tact-1.0 contact-1.0.xsd"&chr(34)&"><contact:domaintype>"
strtemp3 = strtemp3&domaintype&"</contact:domaintype><contact:ascii><contact:name>"
strtemp3 = strtemp3&name&"</contact:name><contact:name_m>"
strtemp3 = strtemp3&name_m&"</contact:name_m><contact:org>"
strtemp3 = strtemp3&org&"</contact:org><contact:org_m>"
strtemp3 = strtemp3&org_m&"</contact:org_m><contact:addr><contact:street1>"
strtemp3 = strtemp3&street1&"</contact:street1><contact:street2>"
strtemp3 = strtemp3&street2&"</contact:street2><contact:city>"
strtemp3 = strtemp3&city&"</contact:city><contact:sp>"
strtemp3 = strtemp3&sp&"</contact:sp><contact:pc>"
strtemp3 = strtemp3&pc&"</contact:pc><contact:cc>"
strtemp3 = strtemp3&cc&"</contact:cc></contact:addr></contact:ascii><contact:voice>"
strtemp3 = strtemp3&voice&"</contact:voice><contact:fax>"
strtemp3 = strtemp3&fax&"</contact:fax><contact:email>"
strtemp3 = strtemp3&email&"</contact:email><contact:pw>"
strtemp3 = strtemp3&pw&"</contact:pw></contact:create></create><unspec>AppPurpose="
strtemp3 = strtemp3&apppurpose&chr(32)&"NexusCategory="&nexuscategory&"</unspec><clTRID>"
strtemp3 = strtemp3&clTRID&"</clTRID><chksum>"
strtemp3 = strtemp3&md5(clID&md5(pwd)&clTRID&"crtcontact"&name&name_m&org&org_m&email)
strtemp3 = strtemp3&"</chksum></command></epp>"
socket.send strtemp3
send_client=strtemp3
re_server=socket.receive(2048)
'response.write re_server
if not find_msg(re_server)=1000 then
socket_create_contactor=find_msg(re_server)&socket_err(find_msg(re_server))
err_msg=find_msg(re_server)
err_code=5001
else
err_code=0
end if
user_id=re_id(re_server)
end function
'----------------------------------------
'    修改联系人socket_update_contactor
'----------------------------------------
public function socket_update_contactor(clID,pwd,domaintype,domain,contacttype,name,org,street1,street2,city,sp,pc,cc,voice,fax,email,pw,apppurpose,nexuscategory)
on error resume next
dim strtemp4
dim clTRID
clTRID=now()&clTRID_create()
strtemp4 = "<?xml version="&chr(34)&"1.0"&chr(34)&" encoding="&chr(34)&"UTF-8"&chr(34)&" standalone="&chr(34)&"no"&chr(34)&" ?>"
strtemp4 = strtemp4&"<epp xmlns="&chr(34)&"urn:iana:xml:ns:epp-1.0"&chr(34)&" xmlns:xsi="&chr(34)&"http://www.w3.org/2001/XMLSchema-instance"&chr(34)&" xsi:schemaLocation="&chr(34)&"urn:iana:xml:ns:epp-1.0 epp-1.0.xsd"&chr(34)&">"
strtemp4 = strtemp4&"<command><update><contact:update xmlns:contact="&chr(34)&"urn:iana:xml:ns:contact-1.0"&chr(34)&" xsi:schemaLocation="&chr(34)&"urn:iana:xml:ns:con tact-1.0 contact-1.0.xsd"&chr(34)&"><contact:domaintype>"
strtemp4 = strtemp4&domaintype&"</contact:domaintype><contact:domain>"
strtemp4 = strtemp4&dmain&"</contact:domain><contact:contacttype>"&contacttype&"</contact:contacttype><contact:ascii><contact:name>"
strtemp4 = strtemp4&name&"</contact:name><contact:org>"&org&"</contact:org><contact:addr><contact:street1>"
strtemp4 = strtemp4&street1&"</contact:street1><contact:street2>"&street2&"</contact:street2><contact:city>"&city
strtemp4 = strtemp4&"</contact:city><contact:sp>"&sp&"</contact:sp><contact:pc>"&pc&"</contact:pc><contact:cc>"&cc&"</contact:cc></contact:addr></contact:ascii><contact:voice>"
strtemp4 = strtemp4&voice&"</contact:voice><contact:fax>"&fax&"</contact:fax><contact:email>"&email&"</contact:email><contact:pw>"&pw
strtemp4 = strtemp4&"</contact:pw></contact:update></update><unspec>AppPurpose="&apppurpose&chr(32)
strtemp4 = strtemp4&"NexusCategory="&nexuscategory&"</unspec><clTRID>"&clTRID&"</clTRID><chksum>"
strtemp4 = strtemp4&md5(clID&md5(pwd)&clTRID&"updcontact"&domaintype&domain&contacttype&name&org&email)
strtemp4 = strtemp4&"</chksum></command></epp>"
socket.send strtemp4
re_server=socket.receive(2048)
if not find_msg(re_server)=1000 then
socket_update_contactor=find_msg(re_server)&socket_err(find_msg(re_server))
err_msg=find_msg(re_server)
err_code=5002
else
err_code=0
end if
aa=strtemp4
end function
'----------------------------------------
'    注册域名socket_create_domain
'----------------------------------------
public function socket_create_domain(clID,pwd,vartype,name,period,ns1,ns2,registrant,admin,tech,billing,pw)
on error resume next
dim strtemp5
dim clTRID
clTRID=now()&clTRID_create()
strtemp5 = "<?xml version="&chr(34)&"1.0"&chr(34)&" encoding="&chr(34)&"UTF-8"&chr(34)&"?><epp><command><create><domain:create><domain:type>"
strtemp5 = strtemp5&vartype&"</domain:type><domain:name>"&name&"</domain:name><domain:period>"&period
strtemp5 = strtemp5&"</domain:period><domain:ns1>"&ns1&"</domain:ns1><domain:ns2>"&ns2&"</domain:ns2><domain:registrant>"
strtemp5 = strtemp5&registrant&"</domain:registrant><domain:contact type="&chr(34)&"admin"&chr(34)&">"&admin
strtemp5 = strtemp5&"</domain:contact><domain:contact type="&chr(34)&"tech"&chr(34)&">"&tech
strtemp5 = strtemp5&"</domain:contact><domain:contact type="&chr(34)&"billing"&chr(34)&">"&billing
strtemp5 = strtemp5&"</domain:contact><domain:authInfo type="&chr(34)&"pw"&chr(34)&">"&pw
strtemp5 = strtemp5&"</domain:authInfo></domain:create></create><clTRID>"&clTRID&"</clTRID><chksum>"
strtemp5 = strtemp5&md5(clID&md5(pwd)&clTRID&"crtdomain"&vartype&name&period&ns1&ns2&registrant&admin&tech&billing&pw)
strtemp5 = strtemp5&"</chksum></command></epp>"
socket.send strtemp5
send_client=strtemp5
re_server=socket.receive(2048)
'response.write re_server
if not find_msg(re_server)=1000 then
socket_create_domain=find_msg(re_server)&socket_err(find_msg(re_server))
err_msg=find_msg(re_server)
err_code=5003
else
err_code=0
end if
end function

'----------------------------------------
'    修改域名socket_update_domain
'----------------------------------------

function  socket_update_domain(clID,pwd,vartype,name,ns1,ns2,pw)
on error resume next
dim strtemp6
dim clTRID
clTRID=now()&clTRID_create()
strtemp6 = "<?xml version="&chr(34)&"1.0"&chr(34)&" encoding="&chr(34)&"UTF-8"&chr(34)&"?><epp><command><update><domain:update xmlns:domain="&chr(34)&"urn:iana:xml:ns:domain-1.0"&chr(34)&"xsi:schema Location="&chr(34)&"urn:iana:xml:ns:domain-1.0domain-1.0.xsd"&chr(34)&"><domain:type>"
strtemp6 = strtemp6&vartype&"</domain:type><domain:name>"&name&"</domain:name><domain:rep><domain:ns1>"
strtemp6 = strtemp6&ns1&"</domain:ns1><domain:ns2>"&ns2&"</domain:ns2><domain:authInfo type="&chr(34)&"pw"&chr(34)&">"
strtemp6 = strtemp6&pw&"</domain:authInfo></domain:rep></domain:update></update><clTRID>"&clTRID&"</clTRID><chksum>"
strtemp6 = strtemp6&md5(clID&md5(pwd)&clTRID&"upddomain"&vartype&name&ns1&ns2&pw)
strtemp6 = strtemp6&"</chksum></command></epp>"
socket.send strtemp6
send_client=strtemp6
re_server=socket.receive(2048)

if not find_msg(re_server)=1000 then
socket_update_domain=find_msg(re_server)&socket_err(find_msg(re_server))
err_msg=find_msg(re_server)
err_code=5004
else
err_code=0
end if
end function

'-------------------------------------------
'    检查域名socket_check_domain
'-------------------------------------------
function socket_check_domain(clID,pwd,vartype,name)
on error resume next
dim strtemp7
dim clTRID
clTRID=now()&clTRID_create()
strtemp7 = "<?xml version="&chr(34)&"1.0"&chr(34)&" encoding="&chr(34)&"UTF-8"&chr(34)&" standalone="&chr(34)&"no"&chr(34)&"?><epp xmlns="&chr(34)&"urn:iana:xml:ns:epp-1.0"&chr(34)&"xmlns:xsi="&chr(34)&"http://www.w3.org/2001/XMLSchema-instance"&chr(34)&"xsi:schemaLocation="&chr(34)&"urn:iana:xml:ns:epp-1.0 epp-1.0.xsd"&chr(34)&">"
strtemp7 = strtemp7&"<command><check><domain:check xmlns:domain="&chr(34)&"urn:iana:xml:ns:domain-1.0"&chr(34)&"xsi:schemaLocation="&chr(34)&"urn:iana:xml:ns:domain-1.0 domain-1.0.xsd"&chr(34)&">"
strtemp7 = strtemp7&"<domain:type>"&vartype&"</domain:type><domain:name>"
strtemp7 = strtemp7&name&"</domain:name></domain:check></check><unspec/><clTRID>"
strtemp7 = strtemp7&clTRID&"</clTRID><chksum>"&md5(clID&md5(pwd)&clTRID&"chkdomain"&vartype&name)
strtemp7 = strtemp7&"</chksum></command></epp>"
socket.send strtemp7
send_client=strtemp7
send_client=strtemp7
re_server=socket.receive(2048)

if not find_msg(re_server)=1000 then
socket_check_domain =find_msg(re_server)&re_chk(re_server)&socket_err(find_msg(re_server))
err_msg=find_msg(re_server)
err_code=5005
else
if re_chk(re_server)="+" then
err_code=5005
else
err_code=0
end if
end if
end function

'----------------------------------------
'    删除域名socket_delete_domain
'----------------------------------------
function socket_delete_domain(clID,pwd,vartype,name)
on error resume next
dim strtemp8
dim clTRID
clTRID=now()&clTRID_create()
strtemp8 = "<?xml version="&chr(34)&"1.0"&chr(34)&" encoding="&chr(34)&"UTF-8"&chr(34)&" standalone="&chr(34)&"no"&chr(34)&"?><epp xmlns="&chr(34)&"urn:iana:xml:ns:epp-1.0"&chr(34)&"xmlns:xsi="&chr(34)&"http://www.w3.org/2001/XMLSchema-instance"&chr(34)&"xsi:schemaLocation="&chr(34)&"urn:iana:xml:ns:epp-1.0 epp-1.0.xsd"&chr(34)&">"
strtemp8 = strtemp8&"<command><delete><domain:delete xmlns:domain="&chr(34)&"urn:iana:xml:ns:domain-1.0"&chr(34)&"xsi:schemaLocation="&chr(34)&"urn:iana:xml:ns:domain-1.0 domain-1.0.xsd"&chr(34)&">"
strtemp8 = strtemp8&"<domain:type>"&vartype&"</domain:type><domain:name>"&name&"</domain:name></domain:delete></delete><unspec/>"
strtemp8 = strtemp8&"<clTRID>"&clTRID&"</clTRID><chksum>"&md5(clID&md5(pwd)&clTRID&"deldomain"&vartype&name)
strtemp8 = strtemp8&"</chksum></command></epp>"
socket.send strtemp8
send_client strtemp8
re_server=socket.receive(2048)
if not find_msg(re_server)=1000 then
socket_delete_domain=find_msg(re_server)&socket_err(find_msg(re_server))
err_msg=find_msg(re_server)
err_code=5006
else
err_code=0
end if
end function

'----------------------------------------
'    续费域名socket_renew_domain
'----------------------------------------
function socket_renew_domain(clID,pwd,vartype,name,period)
on error resume next
dim strtemp9
dim clTRID
clTRID=now()&clTRID_create()
strtemp9 = "<?xml version="&chr(34)&"1.0"&chr(34)&" encoding="&chr(34)&"UTF-8"&chr(34)&" standalone="&chr(34)&"no"&chr(34)&"?><epp xmlns="&chr(34)&"urn:iana:xml:ns:epp-1.0"&chr(34)&"xmlns:xsi="&chr(34)&"http://www.w3.org/2001/XMLSchema-instance"&chr(34)&"xsi:schemaLocation="&chr(34)&"urn:iana:xml:ns:epp-1.0 epp-1.0.xsd"&chr(34)&">"
strtemp9 = strtemp9&"<command><renew><domain:renew xmlns:domain="&chr(34)&"urn:iana:xml:ns:domain-1.0"&chr(34)&"xsi:schemaLocation="&chr(34)&"urn:iana:xml:ns:domain-1.0 domain-1.0.xsd"&chr(34)&">"
strtemp9 = strtemp9&"<domain:type>"&vartype&"</domain:type><domain:name>"&name&"</domain:name><domain:period>"&period&"</domain:period></domain:renew></renew><unspec/>"
strtemp9 = strtemp9&"<clTRID>"&clTRID&"</clTRID><chksum>"&md5(clID&md5(pwd)&clTRID&"renewdomain"&vartype&name&period)&"</chksum></command></epp>"
socket.send strtemp9
send_client=strtemp9
re_server=socket.receive(2048)

if not find_msg(re_server)=1000 then
socket_renew_domain=find_msg(re_server)&socket_err(find_msg(re_server))
err_msg=find_msg(re_server)
err_code=5007
else
err_code=0
end if
end function
'----------------------------------------
'    tcp断开连接socket_close()
'----------------------------------------
sub socket_close()
socket.close
end sub

'****************cn扩展******************
'****************************************
'****************************************
'****************************************

'----------------------------------------
'创建联系人socket_create_contactor_cn
'----------------------------------------
public function socket_create_contactor_cn(clID,pwd,domaintype,name,name_m,org,org_m,street1,street2,city,sp,pc,cc,voice,fax,email,pw,manager,industry)
on error resume next
dim strtemp9
dim clTRID
clTRID=now()&clTRID_create()
strtemp9 = "<?xml version="&chr(34)&"1.0"&chr(34)&" encoding="&chr(34)&"UTF-8"&chr(34)&" standalone="&chr(34)&"no"&chr(34)&" ?>"
strtemp9 = strtemp9&"<epp xmlns="&chr(34)&"urn:iana:xml:ns:epp-1.0"&chr(34)&" xmlns:xsi="&chr(34)&"http://www.w3.org/2001/XMLSchema-instance"&chr(34)&" xsi:schemaLocation="&chr(34)&"urn:iana:xml:ns:epp-1.0 epp-1.0.xsd"&chr(34)&">"
strtemp9 = strtemp9&"<command><create><contact:create xmlns:contact="&chr(34)&"urn:iana:xml:ns:contact-1.0"&chr(34)&" xsi:schemaLocation="&chr(34)&"urn:iana:xml:ns:con tact-1.0 contact-1.0.xsd"&chr(34)&"><contact:domaintype>"
strtemp9 = strtemp9&domaintype&"</contact:domaintype><contact:ascii><contact:name>"
strtemp9 = strtemp9&name&"</contact:name><contact:name_m>"
strtemp9 = strtemp9&name_m&"</contact:name_m><contact:org>"
strtemp9 = strtemp9&org&"</contact:org><contact:org_m>"
strtemp9 = strtemp9&org_m&"</contact:org_m><contact:addr><contact:street1>"
strtemp9 = strtemp9&street1&"</contact:street1><contact:street2>"
strtemp9 = strtemp9&street2&"</contact:street2><contact:city>"
strtemp9 = strtemp9&city&"</contact:city><contact:sp>"
strtemp9 = strtemp9&sp&"</contact:sp><contact:pc>"
strtemp9 = strtemp9&pc&"</contact:pc><contact:cc>"
strtemp9 = strtemp9&cc&"</contact:cc></contact:addr></contact:ascii><contact:voice>"
strtemp9 = strtemp9&voice&"</contact:voice><contact:fax>"
strtemp9 = strtemp9&fax&"</contact:fax><contact:email>"
strtemp9 = strtemp9&email&"</contact:email><contact:pw>"
strtemp9 = strtemp9&pw&"</contact:pw></contact:create></create><unspec>"
'这一部分是扩展部分
strtemp9 = strtemp9&"<cnContact:create xmlns:cnContact="&chr(34)&"urn:iana:xml:ns:cntld:contact-1.0"&chr(34)&" xsi:sche"
strtemp9 = strtemp9&"maLocation="&chr(34)&"urn:iana:xml:ns:cntld:contact-1.0 cntld-contact-1.0.xsd"&chr(34)&">"
strtemp9 = strtemp9&"<cnContact:type>E</cnContact:type>"
strtemp9 = strtemp9&"<cnContact:supplemental>"
strtemp9 = strtemp9&"<cnContact:enterprise>"
strtemp9 = strtemp9&"<cnContact:manager>"&manager&"</cnContact:manager>"
strtemp9 = strtemp9&"<cnContact:industry>"&industry&"</cnContact:industry></cnContact:enterprise>"
strtemp9 = strtemp9&"</cnContact:supplemental></cnContact:create>"
strtemp9 = strtemp9&"</unspec><clTRID>"
strtemp9 = strtemp9&clTRID&"</clTRID><chksum>"
strtemp9 = strtemp9&md5(clID&md5(pwd)&clTRID&"crtcontact"&name&name_m&org&org_m&email)
strtemp9 = strtemp9&"</chksum></command></epp>"
socket.send strtemp9
send_client=strtemp9
re_server=socket.receive(2048)
'response.write re_server
if not find_msg(re_server)=1000 then
socket_create_contactor=find_msg(re_server)&socket_err(find_msg(re_server))
err_msg=find_msg(re_server)
err_code=5001
else
err_code=0
end if
user_id=re_id(re_server)
end function

'----------------------------------------
'创建socket_dns_reg
'----------------------------------------
public function socket_dns_reg(clID,pwd,domaintype,hostname,hostaddr)
on error resume next
dim strtemp10
dim clTRID
clTRID=now()&clTRID_create()
strtemp10 = "<?xml version="&chr(34)&"1.0"&chr(34)&" encoding="&chr(34)&"UTF-8"&chr(34)&" standalone="&chr(34)&"no"&chr(34)&"?>"
strtemp10 = strtemp10&"<epp xmlns="&chr(34)&"urn:iana:xml:ns:epp-1.0"&chr(34)&"xmlns:xsi="&chr(34)&"http://www.w3.org/2001/XMLSchema-instance"&chr(34)&"xsi:schemaLocation="&chr(34)&"urn:iana:xml:ns:epp-1.0 epp-1.0.xsd"&chr(34)&">"
strtemp10 = strtemp10&"<command><create><host:create xmlns:host="&chr(34)&"urn:iana:xml:ns:host-1.0"&chr(34)&"xsi:schemaLocation="&chr(34)&"urn:iana:xml:ns:host-1.0 host-1.0.xsd"&chr(34)&">"
strtemp10 = strtemp10&"<host:domaintype>"&domaintype&"</host:domaintype><host:name>"&hostname&"</host:name><host:addr ip="&chr(34)&"v4"&chr(34)&">"&hostaddr&"</host:addr></host:create></create>"
strtemp10 = strtemp10&"<unspec/><clTRID>"&clTRID&"</clTRID><chksum>"&md5(clID&md5(pwd)&clTRID&"crthost"&domaintype&hostname&hostaddr)&"</chksum></command></epp>"

socket.send strtemp10
send_client=strtemp10
re_server=socket.receive(2048)

if not find_msg(re_server)=1000 then
socket_renew_domain=find_msg(re_server)&socket_err(find_msg(re_server))
err_msg=find_msg(re_server)
err_code=5008
else
err_code=0
end if
end function

'----------------------------------------
'更新socket_dns_update
'----------------------------------------
public function socket_dns_update(clID,pwd,domaintype,hostname,hostaddr_old,hostaddr_new)
on error resume next
dim strtemp11
dim clTRID
clTRID=now()&clTRID_create()
strtemp11 = "<?xml version="&chr(34)&"1.0"&chr(34)&" encoding="&chr(34)&"UTF-8"&chr(34)&" standalone="&chr(34)&"no"&chr(34)&"?>"
strtemp11 = strtemp11&"<epp xmlns="&chr(34)&"urn:iana:xml:ns:epp-1.0"&chr(34)&"xmlns:xsi="&chr(34)&"http://www.w3.org/2001/XMLSchema-instance"&chr(34)&"xsi:schemaLocation="&chr(34)&"urn:iana:xml:ns:epp-1.0 epp-1.0.xsd"&chr(34)&">"
strtemp11 = strtemp11&"<command><update><host:update xmlns:host="&chr(34)&"urn:iana:xml:ns:host-1.0"&chr(34)&"xsi:schemaLocation="&chr(34)&"urn:iana:xml:ns:host-1.0 host-1.0.xsd"&chr(34)&">"
strtemp11 = strtemp11&"<host:domaintype>"&domaintype&"</host:domaintype><host:name>"&hostname&"</host:name><host:add><host:addr ip="&chr(34)&"v4"&chr(34)&">"&hostaddr_new&"</host:addr></host:add>"
strtemp11 = strtemp11&"<host:rem><host:addr ip="&chr(34)&"v4"&chr(34)&">"&hostaddr_old&"</host:addr></host:rem></host:update></update><unspec/><clTRID>"&clTRID&"</clTRID>"
strtemp11 = strtemp11&"<chksum>"&md5(clID&MD5(pwd)&clTRID&"updhost"&domaintype&hostname&hostaddr_new&hostaddr_old)&"</chksum></command></epp>"
socket.send strtemp11
send_client=strtemp11
re_server=socket.receive(2048)

if not find_msg(re_server)=1000 then
socket_renew_domain=find_msg(re_server)&socket_err(find_msg(re_server))
err_msg=find_msg(re_server)
err_code=5009
else
err_code=0
end if
end function

'----------------------------------------
'删除socket_dns_del
'----------------------------------------
public function socket_dns_del(clID,pwd,domaintype,hostname)
on error resume next
dim strtemp12
dim clTRID
clTRID=now()&clTRID_create()
strtemp12 = "<?xml version="&chr(34)&"1.0"&chr(34)&" encoding="&chr(34)&"UTF-8"&chr(34)&" standalone="&chr(34)&"no"&chr(34)&"?>"
strtemp12 = strtemp12&"<epp xmlns="&chr(34)&"urn:iana:xml:ns:epp-1.0"&chr(34)&"xmlns:xsi="&chr(34)&"http://www.w3.org/2001/XMLSchema-instance"&chr(34)&"xsi:schemaLocation="&chr(34)&"urn:iana:xml:ns:epp-1.0 epp-1.0.xsd"&chr(34)&">"
strtemp12 = strtemp12&"<command><delete><host:delete xmlns:host="&chr(34)&"urn:iana:xml:ns:host-1.0"&chr(34)&"xsi:schemaLocation="&chr(34)&"urn:iana:xml:ns:host-1.0 host-1.0.xsd"&chr(34)&">"
strtemp12 = strtemp12&"<host:domaintype>"&domaintype&"</host:domaintype>"
strtemp12 = strtemp12&"<host:name>"&hostname&"</host:name></host:delete></delete>"
strtemp12 = strtemp12&"<unspec/><clTRID>"&clTRID&"</clTRID><chksum>"&md5(clID&MD5(pwd)&clTRID&"delhost"&domaintype&hostname)&"</chksum></command></epp>"      
socket.send strtemp12
send_client=strtemp12
re_server=socket.receive(2048)

if not find_msg(re_server)=1000 then
socket_renew_domain=find_msg(re_server)&socket_err(find_msg(re_server))
err_msg=find_msg(re_server)
err_code=5010
else
err_code=0
end if
end function
end class
%>
aspsocket.dll文件下载

时间: 2025-01-30 18:25:58

AspSocket.dll文件下载与asp代码实例_常用工具的相关文章

生成EAN13标准的条形码的ASP代码实例_应用技巧

复制代码 代码如下: <title>条形码生成</title><%Rem =================================================================Rem = 函数:ean13Rem = 说明:生成EAN13标准的条形码,有实例(ASP代码)Rem = 版本:1.0.0Rem = 作者:第七种直角(7th/semico)Rem = Date:2005-08-08 11:57:06Rem = QQ:11110785Rem

51Window脚本收藏源代码Asp版 下载_常用工具

脚本收藏Asp版 目录页(dir.htm)面改自:myhyli的网页(http://www.blueidea.com/user/myhyli) -------------------- 用户:haiwa 密码:51windows.com -------------------- 添加脚本时,只要把名称,类别,代码:填上就行,代码为html代码! -------------------- 同时可以做成网络收藏夹用 把dirurl.asp改名为dir.asp 添加网址时,只要把名称,类别,网址填上就

太平洋软件下载站SQL全功能新云2.1商业版代码 下载_常用工具

运行环境:Asp/Access/Asp/Mssql/   文件大小:30.76 MB  程序语言:简体中文  授权方式:会员代码  测试情况:本站测试  说明文档 ====================================================== 详细步骤如下: 1.打开企业管理器 2.新建一个数据库(如pc5566) 数据库名称自定,指定SQL数据库存放路径. 也可默认. 3.左击你新建的数据库(pc5566),右键所有任务(k),还原数据库(R) 从设备,选择设备(

清除网页中iframe木马的利器-淘特ASP木马扫描器_常用工具

增加了对iframe,script的检查,可以恢复被大量置入iframe的网页.免得手动去删除的麻烦.virus_lib.asp增加了对iframe,script的控制参数分别为: Const removeIframe=true '是否检查iframeConst IframeKey="3322" 'iframe 中的关键字,如果出现系统将自动清除Const removeScript=true '是否检查scriptConst ScriptKey="3322" 'sc

动力文章管理完整版,绝对商业正版 提供下载了_常用工具

文章管理完整版,绝对商业正版 提供下载了_常用工具-绝对服从电影完整版">动力文章管理完整版,绝对商业正版 动力文章管理程序,绝对商业正版 下载地址已修复 ============================== 点击下载:   用迅雷下啊 http://www2.cixiaf.com/web2/文章管理系统.rar ==============================

生成EAN13标准的条形码的ASP代码实例

复制代码 代码如下:<title>条形码生成</title><%Rem =================================================================Rem = 函数:ean13Rem = 说明:生成EAN13标准的条形码,有实例(ASP代码)Rem = 版本:1.0.0Rem = 作者:第七种直角(7th/semico)Rem = Date:2005-08-08 11:57:06Rem = QQ:11110785Rem =

ASP XMLMaker v3.0 英文非汉化注册特别版_常用工具

ASP XMLMaker v3.0 注册版 软件分类:网络编程 软件性质:国外软件/特别版/英文 软件大小:5.65MB 运行环境:Win9x/ME/NT/2000/XP/2003 '700')this.width='700';if(this.height>'1000')this.height='1000';" border=0> 关于ASP XMLMaker软件的详细简介: ASP XMLMaker是一款ASP代码生成程序,可以从Microsoft Access数据库或者其他任何O

Deepin Windows XP Lite V5.8 完美精简正式版 下载地址_常用工具

本系统定位于个人在家庭.网吧.办公环境使用,采用久经考验的精简方法和体积压缩技术,在220M的光盘体积中提供了几乎100%的原版XP兼容性.经过在两年10余个版本的更新和升级过程后,已经被证明能很好支持各种软件使用和硬件驱动安装,绝无其他精简版存在的功能缺陷问题!深度技术的XP的完美精简版已经成为真正可以用来日常工作的系统,无论是家用,办公还是网吧,都可以家放心使用. 精简并非意味着功能缺失.不稳定或者兼容性差.经过两年的研究,我们的成果已经经过了各种复杂的硬件环境,各种大型软件应用的测试考验.

傲游浏览器 Maxthon RC2 2.0 已经发布 下载_常用工具

+ 文件嗅探器,缺省会嗅探flv文件,支持绝大部分视频网站当浏览器嗅探到相应的文件时候,会在地址栏显示一个标志,点击即可看到隐藏的链接.如果选择*的话,可以查看浏览器发起的所有链接.相信对很多开发人员会有帮助+ 优化了多线程情况下打开多个页面的CPU占用(必须启用tab多线程),给大家一个更流畅的上网体验+ 搜索栏加入了多重搜索和高亮按钮.+ 搜索框新动作,Ctrl+Enter:页面内搜索 Ctrl+Shift+Enter: 高亮 Shift+Enter:多引擎搜索+ 大幅度修改标签栏.改为用工