enhering has asked for the wisdom of the Perl Monks concerning the following question:
$self->{conn} = new Net::Jabber::Client(); $self->{conn}->SetCallBacks(message=>\&InMessage, presence=>\&InPresence, iq=>\&InIQ); my $status = $self->{conn}->Connect( hostname=>$self->{Host}, port=>$self->{Port}, ); ... sub gpib_read { my $self = shift; print "Reading from gpib UD=$self->{ud}.\n" if ($debug); my $message = "GPIB|read|$self->{ud}"; $self->{conn}->MessageSend(to=>'gpibserver@192.168.0.2', subject=>"", body=>$message, thread=>"", priority=>10); #Blocks until answer comes $self->{conn}->Process(); # Answer comes through callback InMessage. Is there a way # of expecting the answer here? }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::Jabber: Receiving answers without callbacks
by zengargoyle (Deacon) on Aug 31, 2006 at 19:51 UTC | |
|
Re: Net::Jabber: Receiving answers without callbacks
by qbxk (Friar) on Aug 31, 2006 at 16:19 UTC | |
|
Re: Net::Jabber: Receiving answers without callbacks
by nicholasrperez (Monk) on Sep 01, 2006 at 20:05 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |