|
Last change
on this file since 10596 was 10589, checked in by Daniela Dorner, 15 years ago |
|
added executable to send command (to scheduler)
|
|
File size:
578 bytes
|
| Line | |
|---|
| 1 | #include <iostream>
|
|---|
| 2 | #include <dic.hxx>
|
|---|
| 3 |
|
|---|
| 4 | using namespace std;
|
|---|
| 5 |
|
|---|
| 6 | int main () {
|
|---|
| 7 |
|
|---|
| 8 | int value;
|
|---|
| 9 |
|
|---|
| 10 | value = DimClient::sendCommand("SCHEDULER/SCHEDULE", NULL, 0);
|
|---|
| 11 |
|
|---|
| 12 | cout << "\n";
|
|---|
| 13 | cout << " The method sendCommand(...) will wait for the command to be actualy sent to the Server and return a completion code of : " << endl;
|
|---|
| 14 | cout << " 1 - if it was successfully sent " << endl;
|
|---|
| 15 | cout << " 0 - if it couldn't be delivered. " << endl;
|
|---|
| 16 |
|
|---|
| 17 | cout << "\n";
|
|---|
| 18 | cout << " The completion code is now: " << value << endl;
|
|---|
| 19 |
|
|---|
| 20 | return 0;
|
|---|
| 21 |
|
|---|
| 22 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.