Unmodified upstream source from https://github.com/Raizo62/vwifi Commit: 4a9842e "CMakeLists.txt : VERSION = 7.0" Simulator of WiFi (802.11) interfaces to communicate between several Virtual Machines via mac80211_hwsim + TCP relay. License: Apache-2.0
29 lines
436 B
C++
29 lines
436 B
C++
#ifndef _CSOCKETCLIENTVTCP_H_
|
|
#define _CSOCKETCLIENTVTCP_H_
|
|
|
|
#include <netinet/ip.h> // struct sockaddr_in
|
|
#include <linux/vm_sockets.h> // struct sockaddr_vm
|
|
|
|
#include "csocketclient.h"
|
|
|
|
class CSocketClientVTCP : public CSocketClient
|
|
{
|
|
private :
|
|
|
|
struct sockaddr_vm Server;
|
|
|
|
public :
|
|
|
|
CSocketClientVTCP();
|
|
|
|
void Init(TPort port);
|
|
|
|
bool _Configure() override;
|
|
|
|
bool _Connect() override;
|
|
|
|
int _GetID() override;
|
|
};
|
|
|
|
#endif
|