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
421 hrs on record
last played on 15 Apr
0 hrs on record
last played on 5 Apr
7.5 hrs on record
last played on 21 Mar
- rep (fails all skillcheck) + ♥♥♥♥♥♥
mks 10 Apr @ 2:05pm 
⣿⠃⠀⡸⡇⠄⠀⢰⠘⠉⠀⠀⢰⠀⡀⠀⠀⠀⠀⠀⠀⠓⢻⣿
⡇⢀⠀⠀⠰⡀⠀⠘⢰⠁⠀⠘⢸⠰⠐⠀⠀⠀⠀⠀⠀⠀⣸⣿
⠃⣸⠧⡀⠀⠀⠀⠀⠀⠀⠀⠀⠏⠂⠀⠀⠀⠀⠀⠀⠀⢰⡷⣿
⣧⢸⠀⠀⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⠀⠀⠘
⣿⠰⡷⠀⣿⣿⣶⣶⣶⣶⣶⣶⣶⣶⣿⣿⣿⣿⣿
⣿⡇⡁⠁⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠀⠀
⣿⣇⠀⡄⠹⣿⢿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠛⠁⠀⠀⠀⠀
⣿⣿⡇⠀⢀⠀⠀⠀⠈⠉⠉⠙⠿⠀⠀⠀⠀
⣿⣿⡇⢊⢺⣦⠈⠀⠀⠀⠀⢀⣾⡆⣀⣀⣀⣤
⣿⣿⣿⣦⡁⠿⣿⣤⣤⣤⡶⢿⣿⡠⡟⠻⣿⣿⡇
⣿⣿⣿⣿⣷⠉⢽⣿⣿⠋⣀⠻⢿⣧⠟⢠⣿⣿
⣿⣿⣿⣿⠛⠀⠀⠹⣿⠋⠙⠷⢦⣀⡠⠿⠟⡻
⣿⣿⡿⡃⠀⠀⠀⠀⠈⢣⣿⣧⠒⠐⠒⢀⣿⡇
⣿⡿⡽⠃⠀⠆⠄⠀⠀⠀⠻⢿⣷⣿⣿⣿⡿⠀
⡟⠀⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠉⠉⠁⠀⠀⠀⠀⠀⠀
seven minutes is all i can spare to play with you.
O-Robi 8 Apr @ 2:09pm 
-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 @ 2:12pm 
-rep normally ate so much ♥♥♥♥ and was offended by my style of play :D
sophiamiller 20 Mar @ 10:08am 
+rep np bestie
hatemode 13 Mar @ 4:03pm 
-rep nazi!!!