|
MBDyn-1.7.3
|
#include "mbconfig.h"#include <stdio.h>#include <stdlib.h>#include <termios.h>#include "ac/getopt.h"#include <errno.h>#include <unistd.h>#include <sys/types.h>#include <sys/socket.h>#include <netinet/in.h>#include <netdb.h>#include <sys/un.h>#include <string.h>#include "sock.h"
Go to the source code of this file.
Functions | |
| static void | keys (FILE *fh) |
| static void | usage (void) |
| void | reset_input_mode (void) |
| void | set_input_mode (void) |
| int | send_message (const char *message) |
| int | main (int argc, char *argv[]) |
Variables | |
| const unsigned short int | PORT = 5555 |
| const char * | SERVERHOST = "localhost" |
| const char * | SERVERPATH = "/var/mbdyn/mbdyn.sock" |
| struct termios | saved_attributes |
| static int | sasl = 0 |
| const char * | path = ((void*)0) |
| const char * | host = ((void*)0) |
| unsigned short int | port = 0 |
|
static |
Definition at line 67 of file autopilot.c.
Definition at line 184 of file autopilot.c.
References c, getopt(), host, keys(), msg, optarg, optind, path, PORT, port, read(), send_message(), SERVERHOST, set_input_mode(), usage(), and verbose.

| void reset_input_mode | ( | void | ) |
Definition at line 105 of file autopilot.c.
References saved_attributes.
Referenced by set_input_mode().
| int send_message | ( | const char * | message | ) |
Definition at line 146 of file autopilot.c.
References host, mbdyn_make_inet_socket(), mbdyn_make_named_socket(), path, and port.
Referenced by main().

| void set_input_mode | ( | void | ) |
Definition at line 111 of file autopilot.c.
References reset_input_mode(), and saved_attributes.
Referenced by main().

|
static |
Definition at line 78 of file autopilot.c.
References keys().
Referenced by main().

| const char* host = ((void*)0) |
Definition at line 142 of file autopilot.c.
Referenced by SocketStreamOutputElemCreator::createSocketStreamOutElem(), main(), ReadExtSocketHandler(), ReadRTMBDynInDrive(), ReadStructMappingExtForce(), and send_message().
| const char* path = ((void*)0) |
Definition at line 141 of file autopilot.c.
Referenced by main(), mbdyn_prepare_files(), module_init(), ReadExtSocketHandler(), and send_message().
| const unsigned short int PORT = 5555 |
Definition at line 62 of file autopilot.c.
Referenced by main().
| unsigned short int port = 0 |
Definition at line 143 of file autopilot.c.
Referenced by main(), ReadExtSocketHandler(), and send_message().
|
static |
Definition at line 136 of file autopilot.c.
| struct termios saved_attributes |
Definition at line 102 of file autopilot.c.
Referenced by reset_input_mode(), and set_input_mode().
| const char* SERVERHOST = "localhost" |
Definition at line 63 of file autopilot.c.
Referenced by main().
| const char* SERVERPATH = "/var/mbdyn/mbdyn.sock" |
Definition at line 64 of file autopilot.c.