NVIDIA DOCA SDK Data Center on a Chip Framework Documentation
comch_ctrl_path_server_main.c File Reference
#include <stdlib.h>
#include <doca_argp.h>
#include <doca_dev.h>
#include <doca_log.h>
#include "comch_ctrl_path_common.h"
Include dependency graph for comch_ctrl_path_server_main.c:

Go to the source code of this file.

Macros

#define DEFAULT_PCI_ADDR   "03:00.0"
 
#define DEFAULT_REP_PCI_ADDR   "b1:00.0"
 
#define DEFAULT_MESSAGE   "Message from the client"
 

Functions

 DOCA_LOG_REGISTER (COMCH_CTRL_PATH_SERVER::MAIN)
 
doca_error_t start_comch_ctrl_path_server_sample (const char *server_name, const char *dev_pci_addr, const char *rep_pci_addr, const char *text, const uint32_t text_size)
 
int main (int argc, char **argv)
 

Macro Definition Documentation

◆ DEFAULT_MESSAGE

#define DEFAULT_MESSAGE   "Message from the client"

Definition at line 36 of file comch_ctrl_path_server_main.c.

◆ DEFAULT_PCI_ADDR

#define DEFAULT_PCI_ADDR   "03:00.0"

Definition at line 34 of file comch_ctrl_path_server_main.c.

◆ DEFAULT_REP_PCI_ADDR

#define DEFAULT_REP_PCI_ADDR   "b1:00.0"

Definition at line 35 of file comch_ctrl_path_server_main.c.

Function Documentation

◆ DOCA_LOG_REGISTER()

DOCA_LOG_REGISTER ( COMCH_CTRL_PATH_SERVER::MAIN  )

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 54 of file comch_ctrl_path_server_main.c.

◆ start_comch_ctrl_path_server_sample()

doca_error_t start_comch_ctrl_path_server_sample ( const char *  server_name,
const char *  dev_pci_addr,
const char *  rep_pci_addr,
const char *  text,
const uint32_t  text_len 
)

Run comch_server sample

@server_name [in]: Server name to connect to @dev_pci_addr [in]: PCI address to connect over @rep_pci_addr [in]: PCI address for the representor @text [in]: Message to send to the server @text_len [in]: Length of message

Returns
: DOCA_SUCCESS on success and DOCA_ERROR otherwise

Definition at line 428 of file comch_ctrl_path_server_sample.c.