Home > OS >  Loadrunner to record a script based on winsocket agreement in 9017
Loadrunner to record a script based on winsocket agreement in 9017

Time:10-04

Recorded a simple winsocket script, at the time of load test VUser didn't run to the problems of 9017 when I was four, please the great god guide
Action. C: error: time has to try to connect timeout, error code: 9017,

# include "the LRS. H"
Vuser_init ()
{
Lrs_startup (257);
return 0;
}

# include "the LRS. H"
The Action ()
{
Lrs_create_socket (" socket0 ", "TCP", "RemoteHost=121.23.24.21:6666", LrsLastArg);
Lrs_send (" socket0 ", "buf0", LrsLastArg);
Lrs_receive (" socket0 ", "buf1", LrsLastArg);
Socket0 lrs_close_socket (" ");
return 0;
}

# include "the LRS. H"
Vuser_end ()
{
Lrs_cleanup ();
return 0;
}

CodePudding user response:

Brother you solved yet
  • Related