Skip to content

Commit

Permalink
linux patch 3
Browse files Browse the repository at this point in the history
  • Loading branch information
notchyves committed Aug 1, 2024
1 parent 9a3e545 commit f126b77
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions src/minecraft/network/socket_abstraction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,27 +19,6 @@
#include <iomanip>
#include <sstream>

class SocketAbstraction {
public:
SocketAbstraction();
~SocketAbstraction();

bool openSocket(const std::string& ip, unsigned short port);
bool sendData(const std::string& data);
std::string receiveData(size_t bufferSize = 1024);
void closeSocket();

std::string GetLocalIPAddress();
private:
int sockfd;
struct sockaddr_in servaddr;

#ifdef _WIN32
WSADATA wsaData;
#endif
};

// Implementation

SocketAbstraction::SocketAbstraction() : sockfd(-1) {
#ifdef _WIN32
Expand Down

0 comments on commit f126b77

Please sign in to comment.