有谁用过w3Sockets的?
我象下面这样用怎么没有效果的?
<% language=JavaScript>
Dim socket
Set socket = Server.CreateObject( "Socket.TCP" );
function send()
{
Response.Write("submit");
socket.Host = "acylas" + ":9999";
socket.Open();
socket.SendLine("test");
socket.WaitForDisconnect();
Response.Write(socket.Buffer);
socket.Close();
}
%>
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
</head>
<body>
<form action="" method="POST" onSubmit="send()">
<input type="submit" value="submit">
</form>
</body>
</html>