Results 1 to 3 of 3
  1. #1
    Administrator
    Join Date
    Jul 2006
    Location
    Milan, Italy
    Posts
    521

    Lightbulb New Tutorial Available

    A new tutorial is available, which shows a very basic example of a Remote Data Adapter.

  2. #2
    Member
    Join Date
    Oct 2008
    Location
    Houston
    Posts
    3
    Quote 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);

  3. #3
    Administrator
    Join Date
    Jul 2006
    Location
    Milan, Italy
    Posts
    521
    Thank you! That's brilliant.

 

 

Similar Threads

  1. ASP.NET Web Client Tutorial
    By rmusco in forum Client SDKs
    Replies: 9
    Last Post: February 1st, 2011, 02:40 PM
  2. NonVisualTable - simple tutorial
    By Mone in forum Client SDKs
    Replies: 13
    Last Post: September 9th, 2010, 06:51 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 03:53 AM.