本文整理汇总了C++中CONN::SendData方法的典型用法代码示例。如果您正苦于以下问题:C++ CONN::SendData方法的具体用法?C++ CONN::SendData怎么用?C++ CONN::SendData使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CONN
的用法示例。
在下文中一共展示了CONN::SendData方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: On_CS_CMD_Received
int On_CS_CMD_Received(Aris::Core::MSG &msg)
{
MSG Command(msg);
Command.SetMsgID(GetControlCommand);
PostMsg(Command);
MSG data(0,0);
ControlSystem.SendData(data);
return 0;
}
示例2: On_CS_Connected
//MSG call back functions
int On_CS_Connected(Aris::Core::MSG &msg)
{
cout<<"Received Connection from Control System:"<<endl;
cout<<" Remote IP is: "<<msg.GetDataAddress()+sizeof(int)<<endl;
cout<<" Port is : "<<*((int*)msg.GetDataAddress()) << endl << endl;
Aris::Core::MSG data(0,0);
ControlSystem.SendData(data);
return 0;
}
示例3: OnControlCommandNeeded
//MSG callback functions
int OnControlCommandNeeded(Aris::Core::MSG &msg)
{
int cmd;
cout<<"Commands:"<<endl;
cout<<"1.Eanble"<<endl<<"2.Disable"<<endl<<"3.Home"<<endl<<"4.Home to standstill"<<endl<<"5.Forward"<<endl<<"6.Back"<<endl<<"7.AUTO Calibration"<<endl<<"8.Turn left"<<endl<<"9.Turn right"<<endl;
cout<<"Please enter your command: ";
cin>>cmd;
while(cmd!=1&&cmd!=2&&cmd!=3&&cmd!=4&&cmd!=5&&cmd!=6&&cmd!=7&&cmd!=8&&cmd!=9)
{
cout<<"Not valid command ID,enter again : ";
cin>>cmd;
}
cmd=cmd-1;
MSG data;
data.SetMsgID(cmd);
ControlSysClient.SendData(data);
return 0;
}
示例4: On_VS_Capture
int On_VS_Capture(Aris::Core::MSG &msg)
{
Aris::Core::MSG visionmsg(msg);
VisionSystem.SendData(visionmsg);
return 0;
}