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:
În prezent online
Activitate recentă
370 ore înregistrate
ultima dată jucat pe 14 ian.
118 ore înregistrate
ultima dată jucat pe 6 ian.
3,3 ore înregistrate
ultima dată jucat pe 29 dec. 2024
alyeska 14 ian. la 15:11 
cry to ur mom dog
SONIC THE COOLEST 18 dec. 2024 la 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.
Shelly<3Blanket 16 dec. 2024 la 13:59 
gg ez
Goiii 10 dec. 2024 la 20:50 
+rep simply for the lack of a personal life
Sleepy Mita <3 Kuro 8 dec. 2024 la 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 dec. 2024 la 14:24 
@Obersturmbanncomander The Problem is: You are the coward