HP LoadRunner Protocol SDK
Events Infra SocketLvl

Socket Level Events

The LoadRunner recording infrastructure creates events that can be used by SDK-based protocols during code generation. In general, these events are used by protocols based on socket-level recording and by protocols that specialize the HTTP and WEB protocols.

Socket Level General Events

The protocol ID for these events is WPLUS.

void wplus_connect(

    [in] int session_id,

    [in] LIPADDRESS ipaddress,

    [in] unsigned short portnum,

    [in] unsigned short local_portnum,

    [in] long flags

);

void wplus_connect_ex(

    [in] int session_id,

    [in] LIPADDRESS ipaddress,

    [in] unsigned short portnum,

    [in] unsigned short local_portnum,

    [in] int socket_type,

    [in] long flags

);

void wplus_accept(

    [in] int session_id,

    [in] LIPADDRESS local_ipaddress,

    [in] unsigned short local_portnum,

    [in] LIPADDRESS remote_ipaddress,

    [in] unsigned short remote_portnum

);

void wplus_listen(

    [in,out] int *session_id,

    [in,out] LIPADDRESS *ipaddress,

    [in,out] unsigned short *portnum,

    [in] long flags    // Flags: 1 = TCP, 2 = UDP

);

void wplus_socket(

    [in] int session_id,

    [in] int socket_type,

    [in] int protocol

);

void wplus_property_sz(

    [in] int session_id,

    [in] LPSTR name,

    [in] LPSTR value1,

    [in] LPSTR value2,

    [in] LPSTR value3,

    [in] LPSTR value4,

    [in] LPSTR value5

);

void wplus_set_flag(

    [in] int session_id,

    [in] long flags);

void wplus_close(

    [in] int session_id

);

void wplus_remark(

    [in] LPSTR type_id,

    [in] LPSTR message

);

void wplus_gethostbyname(

    [in] LPSTR name,

    [in] LIPADDRESS ipaddress

);

void wplus_bind(

    [in] int session_id,

    [in] unsigned short portnum,

    [in] LIPADDRESS ipaddress,

    [in] int local_address_index,

    [in] long flags    // reserved

);

Socket Level Recorded Data Events

The protocol ID for these events is WPLUS.

void wplus_send(

    [in] int session_id,

    [in, size_is(buflen), size_parameter_offset(1)] BYTE *buffer,

    [in] long buflen,

    [in] long flags

);

void wplus_recv(

    [in] int session_id,

    [in, size_is(buflen), size_parameter_offset(1)] BYTE *buffer,

    [in] long buflen,

    [in] long flags

);

void wplus_send_to(

    [in] int session_id,

    [in, size_is(buflen), size_parameter_offset(1)] BYTE *buffer,

    [in] long buflen,

    [in] LIPADDRESS ipaddress,

    [in] unsigned short portnum,

    [in] int socket_type,

    [in] long flags

);

void wplus_recv_from(

    [in] int session_id,

    [in, size_is(buflen), size_parameter_offset(1)] BYTE *buffer,

    [in] long buflen,

    [in] LIPADDRESS ipaddress,

    [in] unsigned short portnum,

    [in] int socket_type,

    [in] long flags

);