USRP_Server  2.0
A flexible, GPU-accelerated radio-frequency readout software.
USRP_server_network.hpp File Reference
#include "USRP_server_diagnostic.hpp"
#include "USRP_server_memory_management.hpp"
#include "USRP_server_settings.hpp"
#include "USRP_JSON_interpreter.hpp"
#include <boost/asio.hpp>
Include dependency graph for USRP_server_network.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Sync_server
 
class  Async_server
 

Macros

#define USRP_NET_INCLUDED
 
#define MSG_LENGHT   1e4
 

Typedefs

typedef boost::lockfree::queue< std::string *> async_queue
 

Enumerations

enum  servr_action {
  START, STOP, FORCE_STOP, RESET_USRP,
  STATUS_REQUEST, INFO_REQUEST, NOTHING
}
 

Functions

char * format_error ()
 
char * format_status ()
 
char * format_parameter (usrp_param *parameters, bool response)
 
usrp_param json_2_parameters (std::string message)
 
servr_action code_2_server_action (int code)
 

Variables

std::atomic< bool > reconnect_data
 
std::atomic< bool > reconnect_async
 

Macro Definition Documentation

◆ USRP_NET_INCLUDED

#define USRP_NET_INCLUDED

Definition at line 3 of file USRP_server_network.hpp.

◆ MSG_LENGHT

#define MSG_LENGHT   1e4

Definition at line 13 of file USRP_server_network.hpp.

Typedef Documentation

◆ async_queue

typedef boost::lockfree::queue< std::string* > async_queue

Definition at line 82 of file USRP_server_network.hpp.

Enumeration Type Documentation

◆ servr_action

Enumerator
START 
STOP 
FORCE_STOP 
RESET_USRP 
STATUS_REQUEST 
INFO_REQUEST 
NOTHING 

Definition at line 94 of file USRP_server_network.hpp.

Function Documentation

◆ format_error()

char* format_error ( )

Definition at line 310 of file USRP_server_network.cpp.

◆ format_status()

char* format_status ( )

Definition at line 315 of file USRP_server_network.cpp.

◆ format_parameter()

char* format_parameter ( usrp_param *  parameters,
bool  response 
)

Definition at line 321 of file USRP_server_network.cpp.

◆ json_2_parameters()

usrp_param json_2_parameters ( std::string  message)

Definition at line 326 of file USRP_server_network.cpp.

◆ code_2_server_action()

servr_action code_2_server_action ( int  code)

Definition at line 332 of file USRP_server_network.cpp.

References FORCE_STOP, INFO_REQUEST, NOTHING, RESET_USRP, START, STATUS_REQUEST, and STOP.

Variable Documentation

◆ reconnect_data

std::atomic<bool> reconnect_data

◆ reconnect_async

std::atomic<bool> reconnect_async

Definition at line 4 of file USRP_server_network.cpp.

Referenced by Async_server::Async_server(), and Async_server::recv_async().