Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
fc::rpc Namespace Reference

Namespaces

namespace  detail
 

Classes

class  cli
 
class  http_api_connection
 
class  variant_connection
 Implements JSON-RPC 2.0 over a set of io streams. More...
 
class  websocket_api_connection
 

Typedefs

typedef std::shared_ptr< variant_connectionvariant_connection_ptr
 

Functions

char * dupstr (const char *s)
 
char * my_generator (const char *text, int state)
 
 catch (const std::bad_alloc &)
 
 catch (const boost::interprocess::bad_alloc &)
 
 catch (const fc::exception &e)
 
 catch (const std::exception &e)
 
resp set_length (resp_body.length())
 
resp write (resp_body.c_str(), resp_body.length())
 

Variables

 try
 
 return
 

Typedef Documentation

◆ variant_connection_ptr

Definition at line 135 of file variant_connection.hpp.

Function Documentation

◆ catch() [1/4]

fc::rpc::catch ( const boost::interprocess::bad_alloc & )

Definition at line 145 of file http_api.cpp.

146 {
147 throw;
148 }

◆ catch() [2/4]

fc::rpc::catch ( const fc::exception & e)

Definition at line 149 of file http_api.cpp.

150 {
151 handle_error(e);
152 }

◆ catch() [3/4]

fc::rpc::catch ( const std::bad_alloc & )

Definition at line 141 of file http_api.cpp.

142 {
143 throw;
144 }

◆ catch() [4/4]

fc::rpc::catch ( const std::exception & e)

Definition at line 153 of file http_api.cpp.

154 {
156 }
static std_exception_wrapper from_current_exception(const std::exception &e)
Here is the call graph for this function:

◆ dupstr()

char * fc::rpc::dupstr ( const char * s)

Definition at line 141 of file cli.cpp.

141 {
142 char *r;
143
144 r = (char*) malloc ((strlen (s) + 1));
145 strcpy (r, s);
146 return (r);
147}
const mie::Vuint & r
Definition bn.cpp:28
char * s
Here is the caller graph for this function:

◆ my_generator()

char * fc::rpc::my_generator ( const char * text,
int state )

Definition at line 149 of file cli.cpp.

150{
151 static int list_index, len;
152 const char *name;
153
154 if (!state) {
155 list_index = 0;
156 len = strlen (text);
157 }
158
159 auto& cmd = cli_commands();
160
161 while( list_index < cmd.size() )
162 {
163 name = cmd[list_index].c_str();
164 list_index++;
165
166 if (strncmp (name, text, len) == 0)
167 return (dupstr(name));
168 }
169
170 /* If no names matched, then return NULL. */
171 return ((char *)NULL);
172}
std::string name
size_t len
Here is the call graph for this function:

◆ set_length()

resp fc::rpc::set_length ( resp_body. length())

◆ write()

resp fc::rpc::write ( resp_body. c_str(),
resp_body. length() )

Variable Documentation

◆ return

fc::rpc::return

Definition at line 180 of file http_api.cpp.

◆ try

fc::rpc::try
Initial value:
{
resp.set_status( resp_status )

Definition at line 158 of file http_api.cpp.