ActiveSocket Network Communication Toolkit
产品概览
有了ActiveSocket,您可以通过TCP/IP网络进行通信,包括Internet。ActiveSocket提供了容易使用的用于TCP/IP通信的界面。通过使用ActiveSocket,您可以轻松创建或增强带有网络特点的程序。多年以来,不管是VBScript, Visual Basic 还是Visual C++ ,众多程序员都一直依赖ActiveXperts Software工具的强大功能、灵活性和可靠性。
通过使用ActiveSocket,您可以轻松的在应用程序中添加或者增强网络功能。
ActiveSocket 具有如下多种功能:
自动启动Telnet sessions; 举例来说,网络交换机一般通过telnet session手工配置。您可以使用ActiveSocket 来自动启动Telnet sessions,隐藏密码、配置菜单;
要创建一个服务器/客户端应用程序,您的服务器应用程序需要监听一个特定的端口查看是否有客户端应用程序连接这个端口;服务器和客户端需要进行双向的通信,使用ASCII或者二进制数据;
通过客户端/服务器技术来增强您的应用程序;
通过RSH (Remote Shell Script)daemon在一台远程UNIX或者LINUX计算机上运行Shell脚本;
支持局域网内唤醒操作(WOL);根据MAC地址唤醒计算机;
其他功能……。
一个小的VBScript例子演示怎样使用telnet 协议protocol :
Const asCONN_DISCONNECTED=1
Const asCONN_LISTENING=2
Const asCONN_CONNECTED=3
Const asPROTOCOL_RAW=1
Const asPROTOCOL_TELNET=2
Set asObj = CreateObject("ActivXperts.Socket")
asObj.Protocol = asPROTOCOL_TELNET
’ 连接80端口
asObj.Connect "www.ActiveXperts.com", 80
Wscript.Echo "Connect to www.ActiveXperts.com:80, result: " & asObj.LastError
If asObj.LastError = 0 And asObj.ConnectionState = asCONN_CONNECTED Then
strReceived = ""
nCounter = nCounter + 1
asObj.Sleep 1000
asObj.SendString "GET /ActivSocket/demopage/ HTTP/1.1", True
asObj.SendString "Host: www.ActiveXperts.com" & vbCrlf, True
asObj.Sleep 1000
If asObj.HasData Then
strReceived = asObj.ReceiveString
WScript.Echo "RECV: " & strReceived
End If
asObj.Sleep 1000
asObj.Disconnect
End If
产品特性
在局域网内或者互联网上的应用程序之间创建面向连接的通信;
完全的TCP/IP;
支持IPX/SPX (需要Winsock version 2.0 或者更高的版本);
Ascii (可显示) 和二进制数据转换;
自动启动telnet sessions;
支持UNIX 或者LINUX shell 脚本;连接远程UNIX/LINUX RSH daemon,运行shell脚本,读取stderr 和stdout;
同时建立多个session,不管是单线程还是多线程;
局域网内唤醒。
软件架构
Windows包含网络和互联网通信的基本功能。这些基本功能都包含在被称为Winsock的DLL 中。ActiveSocket 构建在Winsock之上,既没有替换也没有添加其他的Winsock模块。这大大了稳固了操作系统的稳定性。
ActiveSocket的核心包含在一个文件之中:
ASocket.dll-一个“ActiveSocket COM 组件”;
ActiveSocket可以简单的分布到很多PC上,一旦您购买了认证,您可以把AComport.dll复制到很多PC上在其上注册DLL。
系统需求
支持操作系统:
Windows 98 and Windows ME:
Windows NT4;
Windows 2000;
Windows XP;
Windows 2000;
Windows 2003.
ASP .NET, VB .NET, VC# .NET, ASP, VB, Visual C++ 和其它
您可以在下列任何编程语言中使用ActiveSocket 软件:
Visual Basic 5.x 或更高;
Visual Basic .NET;
ASP 2.x;
ASP .NET;
Visual C++ 5.x 或更高;
Visual C# .NET;
VBScript;
HTML ;
.NET Framework
Product Overview
Adding network communications capabilities to an application is never a simple matter. It requires specialized knowledge that might be outside an individual programmer’s expertise. For years, VBScript, Visual Basic and Visual C++ developers have relied upon the power, flexibility and reliability of the ActiveSocket Network Communication Toolkit from ActiveXperts Software. And today, also .NET developers use this control.
With ActiveSocket you can communicate across TCP/IP networks, including the Internet. ActiveSocket provides an easy-to-use scripting interface for TCP/IP communications. By using ActiveSocket, you can very easily create or enhance applications with network features.
Use ActiveSocket to integrate the following IP protocols in your application or script:
Icmp object - See if you can reach another computer; Determine how long it takes to bounce a packet off of another site, which tells you its distance in network terms;
Http/Https object - Log on to a web server, get the web pages and analyze the contents. Support for Proxy servers, SSL and password protected web sites;
Ntp object - Query NTP time servers and retrieve the actual date and time. Calculate offset between servers to see if your LAN time is set properly;
RSh object - Run a Shell Script on a remote UNIX or LINUX computer that runs the RSH (Remote Shell Script) daemon. Read StdErr and StdOut of the remote shell script;
Snmp object - Use the following SNMP operations: Get, GetNext, Set and Trap; support for SNMP v1 and SNMP v2c;
SnmpTrapOut and SnmpTrapIn object - Send and receive SNMP traps to (remote) SNMP agents. Support for SNMP v1 and SNMP v2c;
Socket object - Create your own client/server applications; your server-application listens for an incoming connection on a specific port, while your client application makes a connection to it; Client and server can communication bidirectional, with support for ASCII and binary data, in your LAN or through the internet; Automate Telnet sessions. Use the Telnet object to logon to a switch or router and make changes to the configuration. Log on to a mail server and list all items. Access a print server through telnet and reboot it. There are many devices and services that can be accessed by this Telnet object;
Wake-On-LAN object; Wake up machines on your LAN, based on their MAC address;
ActiveSocket is build on top of Microsoft Winsock modules; Unlike many other toolkits on the market, it just uses the Microsoft Winsock modules, it doesn’t replace them! The installation of ActiveSocket keeps your system clean.
The performance of the module is outstanding, due to its multi-threaded architecture. It has proven its strength in many business environments over the years.
ActiveSocket runs on the following Operating Systems:
Windows 98 and Windows ME;
Windows NT4;
Windows 2000;
Windows XP;
Windows 2000;
Windows 2003.
ActiveSocket is a COM-component, which can be used in Windows environments that support Visual Basic- or Java scripting. ActiveSocket can be used by any of the following development and scripting languages:
Visual Basic 5.x or higher - Windows based applications;
Visual Basic .NET - Windows .NET based application;
ASP 2.x - Web site based on Active Server Pages (server-side scripting);
ASP .NET - Web site based on Active Server Pages and the .NET Framework;
Visual C++ 5.x or higher - Windows based applications;
Visual C# .NET - Windows .NET based applications;
VBScript - Windows based scripts;
HTML - Client scripts within HTML pages.
Architecture
Windows includes routines for network and Internet communications. These routines are contained in DLLs which are collectively called Winsock (for WINdows SOCKets).
ActiveSocket is built on top of Winsock. It just uses the Winsock modules, it doesn’t replace them, nor does it<