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:
Currently Offline
Recent Activity
3.3 hrs on record
last played on 29 Dec
113 hrs on record
last played on 28 Dec
1.5 hrs on record
last played on 28 Dec
SONIC THE COOLEST 18 Dec @ 4:59pm 
-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 Dec @ 1:59pm 
gg ez
Obersturmbanncomander 10 Dec @ 8:50pm 
+rep simply for the lack of a personal life
Sleepy Mita <3 Kuro 8 Dec @ 12:43pm 
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 @ 2:24pm 
@Obersturmbanncomander The Problem is: You are the coward
Obersturmbanncomander 5 Dec @ 2:10pm 
sick animal