HerzogGallus_96
Patrick   Bayern, Germany
 
 
Just an average game-playing Guy. :steamhappy: Don't feed the troll(s).
------------------
bool RawSocket::open(const char* adapter)
{
// Open socket
socket = ::socket(AF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
if(socket == -1)
{
return false;
}

// Retrive current flags
int flags = fcntl(socket, F_GETFL);
if(flags == -1)
{
close();
return false;
}

// Add non blocking
flags |= O_NONBLOCK;
int result = fcntl(socket, F_SETFL, flags);
if(result == -1)
{
close();
return false;
}

// Bind to adapter
result = setsockopt(socket, SOL_SOCKET, SO_BINDTODEVICE, adapter, strlen(adapter));
if(result == -1)
{
close();
return false;
}

return true;
}
------------------
:steamthis: "HIER KÖNNTE IHRE WERBUNG STEHEN." :steamthis:
Σε σύνδεση
Αγαπημένο παιχνίδι
Πρόσφατη δραστηριότητα
115 ώρες συνολικά
τελευταίο παιχνίδι 3 Ιαν
3,3 ώρες συνολικά
τελευταίο παιχνίδι 29 Δεκ 2024
1,5 ώρες συνολικά
τελευταίο παιχνίδι 28 Δεκ 2024
SONIC THE COOLEST 18 Δεκ 2024, 16:59 
-rep calims someone is tunneling when he was planning to save other survivors from the pallet or by flashlight you better expect i'm gonna search for you after someone got downed it's obvious.
Egg<3Blanket 16 Δεκ 2024, 13:59 
gg ez
Obersturmbanncomander 10 Δεκ 2024, 20:50 
+rep simply for the lack of a personal life
Sleepy Mita <3 Kuro 8 Δεκ 2024, 12:43 
bro you literally did nothing, 0 game sense, can't take a hit and you saying I am antimatexDD bro learn this game and stop shifting in every corner because you hear terror radius for a second
HerzogGallus_96 5 Δεκ 2024, 14:24 
@Obersturmbanncomander The Problem is: You are the coward
Obersturmbanncomander 5 Δεκ 2024, 14:10 
sick animal