Hello,

I am using the POE::Component::Client::TCP to connect
to a server. The server wants messages sent as NULL
terminated strings. Is there a filter already
available? Are there better ways to send this server
the following string?

 Connected => sub {                                   
                       
        my $heap = $_[HEAP];                          
                          
                                                      
                          
        my $request =                                 
                          
                                                      
                          
          qq(
0,"2"1,"123423"10,"197448300"16,"OH"17,"44907"21,"5"22,"1"498,"4147"99,""\0);
      
          $request =~s/[\r\l]//g;
          print "request=  $request\n";               
                                                    
        $heap->{server}->put( \$request );            
                          
    },

Joseph


        
                
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail 

Reply via email to