Beispiel #1
0
const net_call_out_rec* FidoCallout::net_call_out_for(const std::string& node) const {
  static net_call_out_rec nc{};
  VLOG(2) << "FidoCallout::net_call_out_for(" << node << ")";

  try {
    memset(&nc, 0, sizeof(net_call_out_rec));
    auto p = packet_config_for(FidoAddress(node));
    // TODO(rushfan): Add session password.
    to_char_array(nc.password, p.packet_password);
    return &nc;
  } catch (const std::exception&) {
  }
  return nullptr;
}
Beispiel #2
0
static void to_charfilename_length(lua_State *L, luaA_Type type_id, void *c_out, int index)
{
  to_char_array(L, type_id, c_out, index, DT_MAX_FILENAME_LEN);
}
Beispiel #3
0
static void to_charpath_length(lua_State *L, luaA_Type type_id, void *c_out, int index)
{
  to_char_array(L, type_id, c_out, index, PATH_MAX);
}
Beispiel #4
0
static void to_char1024(lua_State *L, luaA_Type type_id, void *c_out, int index)
{
  to_char_array(L, type_id, c_out, index, 1024);
}