libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
introvirt::windows::ws2_32::WSAConnect Class Referencefinal

Handler for ws2_32!WSAConnect. More...

#include <WSAConnect.hh>

Inheritance diagram for introvirt::windows::ws2_32::WSAConnect:
Collaboration diagram for introvirt::windows::ws2_32::WSAConnect:

Public Member Functions

SOCKET s () const
 
void s (SOCKET s)
 
guest_ptr< void > pname () const
 
void pname (const guest_ptr< void > &pname)
 
std::shared_ptr< SOCKADDRname ()
 
int32_t namelen () const
 
void namelen (int32_t namelen)
 
guest_ptr< void > pCallerData () const
 
void pCallerData (const guest_ptr< void > &pCallerData)
 
std::shared_ptr< WSABUFCallerData ()
 
guest_ptr< void > pCalleeData () const
 
void pCalleeData (const guest_ptr< void > &pCalleeData)
 
std::shared_ptr< WSABUFCalleeData ()
 
guest_ptr< void > pSQOS () const
 
void pSQOS (const guest_ptr< void > &pSQOS)
 
std::shared_ptr< QOSSQOS ()
 
guest_ptr< void > pGQOS () const
 
void pGQOS (const guest_ptr< void > &pGQOS)
 
std::shared_ptr< QOSGQOS ()
 
const std::string & function_name () const override
 Get the function name.
 
const std::string & library_name () const override
 Get the name of the library this call is for.
 
void write (std::ostream &os=std::cout) const override
 Write out a textual representation of the function for display.
 
Json::Value json () const override
 Get the function as Json.
 
int32_t result () const
 
void result (int32_t result)
 
 WSAConnect (Event &event)
 
 ~WSAConnect () override
 
- Public Member Functions inherited from introvirt::windows::WindowsFunctionCall
guest_ptr< void > return_address () const override
 Get the return address for this function call.
 
void return_address (const guest_ptr< void > &value) override
 Set the return address for this function call.
 
bool is_return_event (Event &event) const override
 Check if the given event is a return event for this function call.
 
void handle_return (Event &event) override
 Handle the return event.
 
bool returned () const override
 Check if the call has returned.
 
bool x64 () const
 Check if the call is from x64 mode.hh>
 
virtual ~WindowsFunctionCall ()
 
- Public Member Functions inherited from introvirt::FunctionCall
bool hook_return () const
 Check if the user is requesting that the return be intercepted.
 
void hook_return (bool val)
 Configure if the return should be intercepted.
 
void data (const std::string &key, const std::shared_ptr< void > &value)
 Store arbitrary data with the FunctionCall.
 
void data (const std::string &key, std::shared_ptr< void > &&value)
 Store arbitrary data with the FunctionCall.
 
std::shared_ptr< void > data (const std::string &key)
 Retrieve arbitrary data stored with the FunctionCall.
 
std::shared_ptr< const void > data (const std::string &key) const
 Retrieve arbitrary data stored with the FunctionCall.
 
virtual ~FunctionCall ()=default
 

Static Public Member Functions

static int32_t inject (SOCKET s, const guest_ptr< void > &pname, int32_t namelen, const guest_ptr< void > &pCallerData, const guest_ptr< void > &pCalleeData, const guest_ptr< void > &pSQOS, const guest_ptr< void > &pGQOS)
 

Static Public Attributes

static constexpr int ArgumentCount = 7
 
static const std::string LibraryName = "ws2_32"
 
static const std::string FunctionName = "WSAConnect"
 

Additional Inherited Members

- Protected Member Functions inherited from introvirt::windows::WindowsFunctionCall
uint64_t raw_return_value () const
 
void raw_return_value (uint64_t value)
 
uint64_t get_argument (unsigned int index) const
 
void set_argument (unsigned int index, uint64_t value)
 
guest_ptr< void > get_address_argument (unsigned int index) const
 
void set_address_argument (unsigned int index, const guest_ptr< void > &address)
 
Vcpuvcpu ()
 
const Vcpuvcpu () const
 
 WindowsFunctionCall (Event &event, unsigned int argument_count, WindowsCallType type=WindowsCallType::AUTO)
 

Detailed Description

Constructor & Destructor Documentation

◆ WSAConnect()

introvirt::windows::ws2_32::WSAConnect::WSAConnect ( Event event)

◆ ~WSAConnect()

introvirt::windows::ws2_32::WSAConnect::~WSAConnect ( )
override

Member Function Documentation

◆ CalleeData()

std::shared_ptr< WSABUF > introvirt::windows::ws2_32::WSAConnect::CalleeData ( )

◆ CallerData()

std::shared_ptr< WSABUF > introvirt::windows::ws2_32::WSAConnect::CallerData ( )

◆ function_name()

const std::string & introvirt::windows::ws2_32::WSAConnect::function_name ( ) const
overridevirtual

Get the function name.

Returns
const std::string&

Implements introvirt::FunctionCall.

◆ GQOS()

std::shared_ptr< QOS > introvirt::windows::ws2_32::WSAConnect::GQOS ( )

◆ inject()

static int32_t introvirt::windows::ws2_32::WSAConnect::inject ( SOCKET  s,
const guest_ptr< void > &  pname,
int32_t  namelen,
const guest_ptr< void > &  pCallerData,
const guest_ptr< void > &  pCalleeData,
const guest_ptr< void > &  pSQOS,
const guest_ptr< void > &  pGQOS 
)
static

◆ json()

Json::Value introvirt::windows::ws2_32::WSAConnect::json ( ) const
overridevirtual

Get the function as Json.

Returns
Json::Value

Implements introvirt::FunctionCall.

◆ library_name()

const std::string & introvirt::windows::ws2_32::WSAConnect::library_name ( ) const
overridevirtual

Get the name of the library this call is for.

Returns
const std::string&

Implements introvirt::FunctionCall.

◆ name()

std::shared_ptr< SOCKADDR > introvirt::windows::ws2_32::WSAConnect::name ( )

◆ namelen() [1/2]

int32_t introvirt::windows::ws2_32::WSAConnect::namelen ( ) const

◆ namelen() [2/2]

void introvirt::windows::ws2_32::WSAConnect::namelen ( int32_t  namelen)

◆ pCalleeData() [1/2]

guest_ptr< void > introvirt::windows::ws2_32::WSAConnect::pCalleeData ( ) const

◆ pCalleeData() [2/2]

void introvirt::windows::ws2_32::WSAConnect::pCalleeData ( const guest_ptr< void > &  pCalleeData)

◆ pCallerData() [1/2]

guest_ptr< void > introvirt::windows::ws2_32::WSAConnect::pCallerData ( ) const

◆ pCallerData() [2/2]

void introvirt::windows::ws2_32::WSAConnect::pCallerData ( const guest_ptr< void > &  pCallerData)

◆ pGQOS() [1/2]

guest_ptr< void > introvirt::windows::ws2_32::WSAConnect::pGQOS ( ) const

◆ pGQOS() [2/2]

void introvirt::windows::ws2_32::WSAConnect::pGQOS ( const guest_ptr< void > &  pGQOS)

◆ pname() [1/2]

guest_ptr< void > introvirt::windows::ws2_32::WSAConnect::pname ( ) const

◆ pname() [2/2]

void introvirt::windows::ws2_32::WSAConnect::pname ( const guest_ptr< void > &  pname)

◆ pSQOS() [1/2]

guest_ptr< void > introvirt::windows::ws2_32::WSAConnect::pSQOS ( ) const

◆ pSQOS() [2/2]

void introvirt::windows::ws2_32::WSAConnect::pSQOS ( const guest_ptr< void > &  pSQOS)

◆ result() [1/2]

int32_t introvirt::windows::ws2_32::WSAConnect::result ( ) const

◆ result() [2/2]

void introvirt::windows::ws2_32::WSAConnect::result ( int32_t  result)

◆ s() [1/2]

SOCKET introvirt::windows::ws2_32::WSAConnect::s ( ) const

◆ s() [2/2]

void introvirt::windows::ws2_32::WSAConnect::s ( SOCKET  s)

◆ SQOS()

std::shared_ptr< QOS > introvirt::windows::ws2_32::WSAConnect::SQOS ( )

◆ write()

void introvirt::windows::ws2_32::WSAConnect::write ( std::ostream &  os = std::cout) const
overridevirtual

Write out a textual representation of the function for display.

Parameters
os

Implements introvirt::FunctionCall.

Member Data Documentation

◆ ArgumentCount

constexpr int introvirt::windows::ws2_32::WSAConnect::ArgumentCount = 7
staticconstexpr

◆ FunctionName

const std::string introvirt::windows::ws2_32::WSAConnect::FunctionName = "WSAConnect"
inlinestatic

◆ LibraryName

const std::string introvirt::windows::ws2_32::WSAConnect::LibraryName = "ws2_32"
inlinestatic

The documentation for this class was generated from the following file: