NVIDIA DOCA SDK Data Center on a Chip Framework Documentation
comch_data_path_high_speed_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_data_path_high_speed_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_DATA_PATH_HIGH_SPEED_SERVER :MAIN)
 
doca_error_t start_comch_data_path_server_sample (const char *server_name, const char *dev_pci_addr, const char *rep_pci_addr, const char *text)
 
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_data_path_high_speed_server_main.c.

◆ DEFAULT_PCI_ADDR

#define DEFAULT_PCI_ADDR   "03:00.0"

Definition at line 34 of file comch_data_path_high_speed_server_main.c.

◆ DEFAULT_REP_PCI_ADDR

#define DEFAULT_REP_PCI_ADDR   "b1:00.0"

Definition at line 35 of file comch_data_path_high_speed_server_main.c.

Function Documentation

◆ DOCA_LOG_REGISTER()

DOCA_LOG_REGISTER ( COMCH_DATA_PATH_HIGH_SPEED_SERVER :MAIN  )

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 53 of file comch_data_path_high_speed_server_main.c.

◆ start_comch_data_path_server_sample()

doca_error_t start_comch_data_path_server_sample ( const char *  server_name,
const char *  dev_pci_addr,
const char *  rep_pci_addr,
const char *  text 
)

Run comch_client 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

Returns
: DOCA_SUCCESS on success and DOCA_ERROR otherwise

Definition at line 506 of file comch_data_path_high_speed_server_sample.c.