-
July 30th, 2008, 12:02 PM
#1
New Tutorial Available
A new tutorial is available, which shows a very basic example of a Remote Data Adapter.
-
October 29th, 2008, 05:39 PM
#2
Originally Posted by
Alessandro
A
new tutorial is available, which shows a very basic example of a Remote Data Adapter.
here is a perl script that will replace the "human" datafeed in the tutorial.
<------------- cut here ------------------>
#!/usr/bin/perl
use IO::Socket;
$control = IO::Socket::INET->new("127.0.0.1:7001") or die "$@\n";
$feed = IO::Socket::INET->new("127.0.0.1:7002") or die "$@\n";
$answer = <$control>;
(@tuples) = split(/\|/,$answer);
print $control "$tuples[0]|SUB|V\n";
while () {
($sec,$min,$hour,$mday,$month,$year,$wday,$yday,$i sdst) = localtime();
$timestamp = sprintf("%d/%02d/%02d %02d:%02d:%02d",$year+1900,$month+1,$mday,$hour,$m in,$sec);
print $feed "0|UD3|S|greetings|S|$tuples[0]|B|0|S|timestamp|S|$timestamp|S|message|S|Hello socket world!\n";
print "$timestamp\n";
sleep(1);
}
close($control);
close($feed);
-
October 30th, 2008, 02:10 PM
#3
Thank you! That's brilliant.
Similar Threads
-
By rmusco in forum Client SDKs
Replies: 9
Last Post: February 1st, 2011, 01:40 PM
-
By Mone in forum Client SDKs
Replies: 13
Last Post: September 9th, 2010, 05:51 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 05:39 PM.
Bookmarks