Hi all,
thanks Toby. my relay driver is working. i wrote one simple client program . the program is
 
 

# include <iostream>

# include <libplayerc++/playerc++.h>

int

main(int argc, char *argv[])

{

using namespace PlayerCc;

PlayerClient robot( "localhost");

DioProxy dp (&robot,1);

robot.Read();

std::cout<<dp[1]<<std::endl; 

return 0;

}

 

i can on/off the relay from this client program also it work and give me information in driver window. same like that

 

trying to load /home/student/Desktop/player_test/./drioDriver31...

success

invoking player_driver_init()...

Registering drioDriver31 driver.

success

Listening on ports: 6665

accepted client 0 on port 6665, fd 5

> Connecting to drioDriver31...[done]

Box is closed.

 

but when i called client program than it show me this error after (few seconds)

 

student@student-desktop:~$ cd /home/student/Desktop/player_teststudent@student-desktop:~/Desktop/player_test$ ./box0

calling connect

done

playerc error : poll call failed with error [0:Success]

playerc error : recv failed with error [Success]

warning : failed to reconnect

terminate called after throwing an instance of 'PlayerCc::PlayerError'

Aborted (core dumped)

student@student-desktop:~/Desktop/player_test$

 

 

and stop the plugin driver

 

trying to load /home/student/Desktop/player_test/./drioDriver31...

success

invoking player_driver_init()...

Registering drioDriver31 driver.

success

Listening on ports: 6665

accepted client 0 on port 6665, fd 5

> Connecting to drioDriver31...[done]

Box is closed.

closing connection to client 0 on port 6665

drioDriver31 shutting down... [done]

 

if i want to get playermassage in client program window what i shall do. please help me.

 

best regards

 

asm hoque

phd. student

 

dcu.



5, 50, 500, 5000 - Store N number of mails in your inbox. Click here.