75 vacomm_buffer_p->
rc =
rc;
127 char *new_area_p, *
p;
133 while ((vacomm_buffer_p->
cur_pos + dbval_length) > vacomm_buffer_p->
size)
135 if (vacomm_buffer_p->
cur_pos == 0)
138 if (new_area_p ==
NULL)
145 vacomm_buffer_p->
area = new_area_p;
147 vacomm_buffer_p->
size = dbval_length;
171 vacomm_buffer_p->
action = action;
189 char *new_pos = vacomm_buffer_p->
buffer + vacomm_buffer_p->
cur_pos + dbval_length;
193 memset (p, 0, new_pos - p);
199 vacomm_buffer_p->
cur_pos += dbval_length;
278 int turn_on_auth = 1;
302 for (num_method = 0; num_method < method_sig_list_p->
num_methods; num_method++)
305 meth_sig_p = meth_sig_p->
next;
314 if (val_list_p ==
NULL)
321 for (count = 0, value_p = val_list_p; count < value_count; count++, value_p++)
327 if (values_p ==
NULL)
335 oid_cols = (
int *) malloc (
sizeof (
int) * method_sig_list_p->
num_methods);
336 if (oid_cols ==
NULL)
347 for (num_method = 0; num_method < method_sig_list_p->
num_methods; num_method++)
350 meth_sig_p = meth_sig_p->
next;
353 if (!
cursor_open (&cursor_id, list_id_p,
false,
false))
381 for (num_method = 0, meth_sig_p = method_sig_list_p->
method_sig; num_method < method_sig_list_p->num_methods;
382 ++num_method, meth_sig_p = meth_sig_p->
next)
386 for (arg = 0; arg < num_args; ++arg)
389 values_p[arg] = &val_list_p[pos];
392 values_p[num_args] = (
DB_VALUE *) 0;
466 for (count = 0, value_p = val_list_p; count < value_count; count++, value_p++)
477 for (count = 0, value_p = val_list_p; count < value_count; count++, value_p++)
508 if (method_sig !=
NULL)
528 if (meth_sig_list !=
NULL)
int jsp_call_from_server(DB_VALUE *returnval, DB_VALUE **argarray, const char *name, const int arg_cnt)
static int method_send_value_to_server(DB_VALUE *dbval, VACOMM_BUFFER *vacomm_buffer)
struct qmgr_temp_file * tfile_vfid
QFILE_TUPLE_VALUE_TYPE_LIST type_list
#define VACOMM_BUFFER_SIZE
char * or_pack_db_value(char *buffer, DB_VALUE *var)
int cursor_next_tuple(CURSOR_ID *cursor_id_p)
int db_is_instance(MOP obj)
static int method_initialize_vacomm_buffer(VACOMM_BUFFER *vacomm_buffer, unsigned int rc, char *host, char *server_name)
int db_is_any_class(MOP obj)
#define VACOMM_BUFFER_HEADER_LENGTH_OFFSET
#define VACOMM_BUFFER_HEADER_ERROR_OFFSET
int net_client_send_data(char *host, unsigned int rc, char *databuf, int datasize)
int method_invoke_for_server(unsigned int rc, char *host_p, char *server_name_p, qfile_list_id *list_id_p, method_sig_list *method_sig_list_p)
void er_set(int severity, const char *file_name, const int line_no, int err_id, int num_args,...)
#define ER_OUT_OF_VIRTUAL_MEMORY
#define OR_VALUE_ALIGNED_SIZE(value)
int obj_send_array(MOP obj, const char *name, DB_VALUE *returnval, DB_VALUE **argarray)
int cursor_set_oid_columns(CURSOR_ID *cursor_id_p, int *oid_col_no_p, int oid_col_no_cnt)
DB_OBJECT * db_get_object(const DB_VALUE *value)
int db_enable_modification(void)
#define db_private_free_and_init(thrd, ptr)
static void method_clear_vacomm_buffer(VACOMM_BUFFER *vacomm_buffer)
int count(int &result, const cub_regex_object ®, const std::string &src, const int position, const INTL_CODESET codeset)
int pr_clear_value(DB_VALUE *value)
int net_client_receive_action(int rc, int *action)
static void error(const char *msg)
char * or_pack_int(char *ptr, int number)
int db_disable_modification(void)
#define free_and_init(ptr)
#define VACOMM_BUFFER_HEADER_NO_VALS_OFFSET
#define ER_HEAP_UNKNOWN_OBJECT
#define DB_CURSOR_SUCCESS
int method_send_error_to_server(unsigned int rc, char *host_p, char *server_name_p)
static int method_send_eof_to_server(VACOMM_BUFFER *vacomm_buffer)
void cursor_close(CURSOR_ID *cursor_id_p)
#define DB_VALUE_TYPE(value)
int db_make_null(DB_VALUE *value)
static void methid_sig_freemem(method_sig_node *meth_sig)
#define DB_IS_NULL(value)
void method_sig_list_freemem(method_sig_list *meth_sig_list)
char * strdup(const char *str)
#define VACOMM_BUFFER_HEADER_SIZE
#define VACOMM_BUFFER_HEADER_STATUS_OFFSET
bool cursor_open(CURSOR_ID *cursor_id_p, QFILE_LIST_ID *list_id_p, bool updatable, bool is_oid_included)
int cursor_get_tuple_value_list(CURSOR_ID *cursor_id_p, int size, DB_VALUE *value_list_p)