#include "marnet.h"#include <stdio.h>#include <string.h>#include <sys/types.h>#include <sys/socket.h>#include <sys/time.h>#include <unistd.h>#include <netinet/in.h>#include <netdb.h>#include <fcntl.h>#include <errno.h>#include <signal.h>#include <time.h>#include "marcmd.h"
Go to the source code of this file.
Defines | |
| #define | MAX_TRY 1000 |
| #define | DATA_SIZE 16386 |
| #define | STAT_SIZE 404 |
| #define | MESS_SIZE 84 |
| #define | FD_MAX FD_SETSIZE |
| #define | SK_COMM 0 |
| #define | SK_STAT 1 |
| #define | SK_DATA 2 |
| #define | SK_MESS 3 |
Functions | |
| void | swaplong (char *, int) |
| void | swapshort (char *, int) |
Variables | |
| static char | net_buf [DATA_SIZE] |
| static char | msg_buf [MESS_SIZE] |
| char | net_timeout = 0 |
| int | mar_socket [4] = {-1, -1, -1, -1} |
| static char * | sk_type [4] = { "COMM", "STAT", "DATA", "MESS"} |
| static char | stop_trying = 0 |
| char | str [1024] |
| char | scan_in_progress |
| int | debug |
| int | netcontrol |
| static struct timeval | timeout |
| #define DATA_SIZE 16386 |
Definition at line 37 of file marnet.cpp.
Referenced by MarNet::net_data().
| #define FD_MAX FD_SETSIZE |
Definition at line 40 of file marnet.cpp.
Referenced by MarNet::net_comm(), MarNet::net_data(), MarNet::net_select(), and MarNet::net_stat().
| #define MAX_TRY 1000 |
Definition at line 36 of file marnet.cpp.
Referenced by MarNet::net_open().
| #define MESS_SIZE 84 |
Definition at line 39 of file marnet.cpp.
Referenced by MarNet::net_msg().
| #define SK_COMM 0 |
Definition at line 42 of file marnet.cpp.
Referenced by MarNet::net_comm().
| #define SK_DATA 2 |
Definition at line 44 of file marnet.cpp.
Referenced by MarNet::net_data().
| #define SK_MESS 3 |
Definition at line 45 of file marnet.cpp.
Referenced by MarNet::net_msg().
| #define SK_STAT 1 |
Definition at line 43 of file marnet.cpp.
Referenced by MarNet::net_stat().
| #define STAT_SIZE 404 |
Definition at line 38 of file marnet.cpp.
Referenced by MarNet::net_stat().
| void swaplong | ( | char * | , |
| int | |||
| ) |
| void swapshort | ( | char * | , |
| int | |||
| ) |
Referenced by MarNet::net_data(), MarXF::ReadNB(), and MarXF::Transform().
| int debug |
Definition at line 104 of file marglobals.h.
Referenced by MarHW::get_status(), IsNFS(), MarXF::mar_start_scan_readout(), MarHW::marTask(), MarNet::net_data(), MarNet::net_stat(), MarXF::output_image(), Scan345::scan345_main(), and MarXF::Transform().
| int mar_socket[4] = {-1, -1, -1, -1} |
Definition at line 51 of file marnet.cpp.
Referenced by MarNet::net_close(), MarNet::net_comm(), MarNet::net_data(), MarNet::net_msg(), MarNet::net_open(), MarNet::net_select(), and MarNet::net_stat().
char msg_buf[MESS_SIZE] [static] |
Definition at line 48 of file marnet.cpp.
Referenced by MarNet::net_msg().
char net_buf[DATA_SIZE] [static] |
Definition at line 47 of file marnet.cpp.
Referenced by MarNet::net_data().
| char net_timeout = 0 |
Definition at line 50 of file marnet.cpp.
Referenced by MarNet::net_comm(), MarNet::net_msg(), and MarNet::net_stat().
| int netcontrol |
Definition at line 225 of file marglobals.h.
Referenced by MarHW::get_status(), MarHW::mar_change_mode(), MarHW::mar_command(), MarHW::mar_erase(), MarHW::mar_servo(), MarStartup::marStartup(), MarNet::net_close(), MarNet::net_comm(), MarNet::net_data(), MarNet::net_msg(), MarNet::net_select(), MarNet::net_stat(), QScan345Controller::poll_status(), and Scan345::scan345_main().
| char scan_in_progress |
char* sk_type[4] = { "COMM", "STAT", "DATA", "MESS"} [static] |
Definition at line 52 of file marnet.cpp.
Referenced by MarNet::net_open().
char stop_trying = 0 [static] |
Definition at line 53 of file marnet.cpp.
Referenced by MarNet::net_open(), and MarNet::stop_net().
| char str[1024] |
Definition at line 87 of file marglobals.h.
struct timeval timeout [static] |
Definition at line 58 of file marnet.cpp.
Referenced by MarNet::net_comm(), MarNet::net_data(), MarNet::net_open(), MarNet::net_select(), and MarNet::net_stat().
1.7.3