|
JAPAn
Just Another Parity Analyzer
|
#include <stdio.h>#include <unistd.h>#include <sys/socket.h>#include <netinet/in.h>#include <netinet/tcp.h>#include <arpa/inet.h>#include <string.h>#include "cfSockCli.h"
Include dependency graph for cfSockCli.c:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Functions | |
| int | cfSockCliOpen (int crate_number, int keepopen) |
| int | cfSockCliSend (int crate_number, struct request *myRequest, struct request *serverReply) |
| int | cfSockCliClose () |
| int | cfSockCli (int crate_number, struct request *myRequest, struct request *serverReply) |
| int | cfSockCommand (int crate_number, long command_type, long command, long req_param, long req_param_2, char *reply, char *msg) |
| int | GreenSockCommand (int crate_number, struct greenRequest *gRequest) |
| void | buildRequestInteractive (struct request *myRequest) |
| void | handleReplyInteractive (struct request *serverReply) |
Variables | |
| static int | gSocketFd |
| static int | gSocketKeepOpen = 0 |
| void buildRequestInteractive | ( | struct request * | myRequest | ) |
Definition at line 394 of file cfSockCli.c.
References request::command, request::command_type, FALSE, MAGIC_COOKIE, request::magic_cookie, request::message, request::msgLen, request::par1, request::par2, request::reply, REQUEST_MSG_SIZE, and STD_IN.
Definition at line 58 of file cfSockCli.c.
References cfSockCliClose(), cfSockCliOpen(), cfSockCliSend(), and SOCK_OK.
Referenced by cfSockCommand(), and GreenSockCommand().
Here is the call graph for this function:
Here is the caller graph for this function:| int cfSockCliClose | ( | ) |
Definition at line 234 of file cfSockCli.c.
References gSocketFd, gSocketKeepOpen, and SOCK_OK.
Referenced by cfSockCli().
Here is the caller graph for this function:| int cfSockCliOpen | ( | int | crate_number, |
| int | keepopen ) |
Definition at line 84 of file cfSockCli.c.
References Crate_CountingHouse, Crate_Injector, Crate_LeftSpect, Crate_Qwvmets, Crate_RightSpect, gSocketFd, gSocketKeepOpen, SERVER_PORT_NUM, ServerName_CountingHouse, ServerName_Injector, ServerName_LeftSpect, ServerName_QwTSCrate, ServerName_RightSpect, SOCK_ERROR, and SOCK_OK.
Referenced by cfSockCli().
Here is the caller graph for this function:Definition at line 158 of file cfSockCli.c.
References gSocketFd, gSocketKeepOpen, request::reply, SOCK_ERROR, and SOCK_OK.
Referenced by cfSockCli().
Here is the caller graph for this function:| int cfSockCommand | ( | int | crate_number, |
| long | command_type, | ||
| long | command, | ||
| long | req_param, | ||
| long | req_param_2, | ||
| char * | reply, | ||
| char * | msg ) |
Definition at line 277 of file cfSockCli.c.
References cfSockCli(), request::command, request::command_type, FALSE, MAGIC_COOKIE, request::magic_cookie, request::message, request::msgLen, request::par1, request::par2, request::reply, REQUEST_MSG_SIZE, and SOCK_OK.
Here is the call graph for this function:| int GreenSockCommand | ( | int | crate_number, |
| struct greenRequest * | gRequest ) |
Definition at line 334 of file cfSockCli.c.
References cfSockCli(), greenRequest::command, request::command, greenRequest::command_type, request::command_type, FALSE, MAGIC_COOKIE, request::magic_cookie, greenRequest::message, request::message, request::msgLen, greenRequest::par1, request::par1, greenRequest::par2, request::par2, greenRequest::reply, request::reply, REQUEST_MSG_SIZE, and SOCK_OK.
Referenced by GreenMonster::SCNCheckStatus(), GreenMonster::SCNCheckValues(), GreenMonster::SCNSetStatus(), and GreenMonster::SCNSetValue().
Here is the call graph for this function:
Here is the caller graph for this function:| void handleReplyInteractive | ( | struct request * | serverReply | ) |
Definition at line 428 of file cfSockCli.c.
References request::command, request::command_type, request::message, request::msgLen, request::par1, and request::par2.
|
static |
Definition at line 24 of file cfSockCli.c.
Referenced by cfSockCliClose(), cfSockCliOpen(), and cfSockCliSend().
|
static |
Definition at line 25 of file cfSockCli.c.
Referenced by cfSockCliClose(), cfSockCliOpen(), and cfSockCliSend().