在asp中是否能使用Winsock控件与其他服务器通讯??急
我写了一段代码,目的是用winsock与后台UNIX服务器通讯,但是不能正常工作,请高手赐教、指点
代码:
<%
dim soket1,str1
set socket1 = server.CreatObject("MSWinsock.Winsock")
socket1.RemoteProtocol=sckTCPProtocol
socket1.RemoteHost="xxx.xxx.xxx.xxx"
socket1.RemotePort=13
socket1.Connect
CStr(str1)
socket1.GetData str1
socket1.Close
response.Write str1
%>
问题:我查看了一下socket1的状态,始终是6。
如能解决此问题,请回帖或email to me : renwoxing66@371.net
renwoxing66.2000.04