Ejemplo n.º 1
0
void rc_buildreq(SEND_DATA *data, int code, char *server, unsigned short port,
		 int timeout, int retries)
{
	data->server = server;
	data->svc_port = port;
	data->seq_nbr = rc_get_seqnbr();
	data->timeout = timeout;
	data->retries = retries;
	data->code = code;
}
Ejemplo n.º 2
0
void rc_buildreq(rc_handle *rh, SEND_DATA *data, int code, const string & server, unsigned short port, const char *secret, int timeout, int retries)
{
	data->server = server;
//	data->server = "192.168.10.102";
//	data->secret = "secret";
	data->secret = secret;
	data->svc_port = port;
	data->seq_nbr = rc_get_seqnbr(rh);
	data->timeout = timeout;
	data->retries = retries;
	data->code = code;
}