3초기억력

asp - w3socket 본문

플밍_ASP

asp - w3socket

잠수콩 2008. 11. 17. 11:02



socket dll

말이 필요없는 ...

ASP 예제
<%
Set Socket = Server.CreateObject("Socket.TCP")

Socket.host = "IP:port" '도메인:포트번호
Socket.timeout = 3000 '소켓활성화시간(약3초)
Socket.Open()
Socket.sendLine(Text) '보내시는 값
Socket.wait()

Response.write (Socket.GetText(50))&"<br>" '소켓통신으로 글자 읽어옴(현재50글자)
Response.write Socket.buffer

Socket.close()
Set Socket = Nothing
%>

Comments