Difference between revisions of "ActiveSockets"
From aHuman Wiki
(Automated page entry using MWPush.pl) |
(Automated page entry using MWPush.pl) |
||
Line 10: | Line 10: | ||
== Implementation Details == | == Implementation Details == | ||
− | + | * | |
− | + | * | |
− | + | * | |
− | + | * | |
− | + | * | |
− | + | * | |
− | + | * | |
Planned but implemented: | Planned but implemented: | ||
− | + | * | |
− | + | * | |
== Configuration == | == Configuration == | ||
− | + | * | |
<pre> | <pre> | ||
<channel name="google" run="true"> | <channel name="google" run="true"> | ||
Line 41: | Line 41: | ||
</pre> | </pre> | ||
− | + | * | |
− | + | * | |
− | + | * | |
− | + | * | |
− | + | * | |
− | + | * | |
− | + | * | |
== How to Test == | == How to Test == | ||
− | + | * | |
<pre> | <pre> | ||
INFO: AI console | INFO: AI console |
Revision as of 01:09, 16 June 2015
Network Listeners
@@Home -> Specs -> ActiveSockets
Overview
This feature allows to have unlimited set of connections initiated from aiengine server to external servers.
Implementation Details
Planned but implemented:
Configuration
<channel name="google" run="true"> <property name="protocol" value="http"/> <property name="protocol.showmessages" value="false"/> <property name="protocol.showpackets" value="false"/> <property name="msgtype" value="text"/> <property name="permanent" value="true"/> <property name="host" value="www.google.com"/> <property name="port" value="80"/> <property name="redirect-in" value="true"/> <property name="redirect-out" value="true"/> <property name="topic-in" value="http.response"/> <property name="topic-out" value="http.request"/> </channel>
How to Test
INFO: AI console INFO: connected to 87.228.126.111:20001 REQUEST: <xmlcall name="TestDirectChannels-Google" class="TestDirectChannels" method="testRequestPage" requestId="REQ-1"> <parameters> <property name="page" value="http://code.google.com" /> </parameters> </xmlcall> output: RESPONSE: <xmlcallresult requestId="REQ-1" name="TestDirectChannels-Google" status="OK"> <page>http://code.google.com</page> <body><!DOCTYPE html... (omitted) </xmlcallresult> INFO: disconnected