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:
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:
Online just nu
Senaste aktiviteterna
423 timmar totalt
spelades senast den 8 maj
131 timmar totalt
spelades senast den 25 apr
0 timmar totalt
spelades senast den 5 apr
Prestationsförlopp   0 av 32
- rep (fails all skillcheck) + ♥♥♥♥♥♥
mks 10 apr @ 14:05 
⣿⠃⠀⡸⡇⠄⠀⢰⠘⠉⠀⠀⢰⠀⡀⠀⠀⠀⠀⠀⠀⠓⢻⣿
⡇⢀⠀⠀⠰⡀⠀⠘⢰⠁⠀⠘⢸⠰⠐⠀⠀⠀⠀⠀⠀⠀⣸⣿
⠃⣸⠧⡀⠀⠀⠀⠀⠀⠀⠀⠀⠏⠂⠀⠀⠀⠀⠀⠀⠀⢰⡷⣿
⣧⢸⠀⠀⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⠀⠀⠘
⣿⠰⡷⠀⣿⣿⣶⣶⣶⣶⣶⣶⣶⣶⣿⣿⣿⣿⣿
⣿⡇⡁⠁⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠀⠀
⣿⣇⠀⡄⠹⣿⢿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠛⠁⠀⠀⠀⠀
⣿⣿⡇⠀⢀⠀⠀⠀⠈⠉⠉⠙⠿⠀⠀⠀⠀
⣿⣿⡇⢊⢺⣦⠈⠀⠀⠀⠀⢀⣾⡆⣀⣀⣀⣤
⣿⣿⣿⣦⡁⠿⣿⣤⣤⣤⡶⢿⣿⡠⡟⠻⣿⣿⡇
⣿⣿⣿⣿⣷⠉⢽⣿⣿⠋⣀⠻⢿⣧⠟⢠⣿⣿
⣿⣿⣿⣿⠛⠀⠀⠹⣿⠋⠙⠷⢦⣀⡠⠿⠟⡻
⣿⣿⡿⡃⠀⠀⠀⠀⠈⢣⣿⣧⠒⠐⠒⢀⣿⡇
⣿⡿⡽⠃⠀⠆⠄⠀⠀⠀⠻⢿⣷⣿⣿⣿⡿⠀
⡟⠀⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠉⠉⠁⠀⠀⠀⠀⠀⠀
seven minutes is all i can spare to play with you.
O-Robi 8 apr @ 14:09 
-rep how can a survy be so ungratefull and be signailg where i am hiding to the killer, shameon u :3dsephiroth:
I hate you. 20 mar @ 14:12 
-rep normally ate so much ♥♥♥♥ and was offended by my style of play :D
sophiamiller 20 mar @ 10:08 
+rep np bestie
hatemode 13 mar @ 16:03 
-rep ♥♥♥♥!!!