| 62 | //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 63 | |
| 64 | bool FGInputSocket::Load(Element* el) |
| 65 | { |
| 66 | if (!FGInputType::Load(el)) |
| 67 | return false; |
| 68 | |
| 69 | SockPort = atoi(el->GetAttributeValue("port").c_str()); |
| 70 | |
| 71 | if (SockPort == 0) { |
| 72 | FGXMLLogging log(el, LogLevel::ERROR); |
| 73 | log << "No port assigned in input element\n"; |
| 74 | return false; |
| 75 | } |
| 76 | |
| 77 | string action = el->GetAttributeValue("action"); |
| 78 | if (to_upper(action) == "BLOCKING_INPUT") |
| 79 | BlockingInput = true; |
| 80 | |
| 81 | return true; |
| 82 | } |
| 83 | |
| 84 | //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 85 |
nothing calls this directly
no test coverage detected