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:
Kirjautunut ulos
Viimeaikainen toiminta
yhteensä 423 tuntia
Pelattu viimeksi 8.5.
yhteensä 131 tuntia
Pelattu viimeksi 25.4.
yhteensä 0 tuntia
Pelattu viimeksi 5.4.
Saavutustilastot   0 / 32
- rep (fails all skillcheck) + ♥♥♥♥♥♥
mks 10.4. klo 14.05 
⣿⠃⠀⡸⡇⠄⠀⢰⠘⠉⠀⠀⢰⠀⡀⠀⠀⠀⠀⠀⠀⠓⢻⣿
⡇⢀⠀⠀⠰⡀⠀⠘⢰⠁⠀⠘⢸⠰⠐⠀⠀⠀⠀⠀⠀⠀⣸⣿
⠃⣸⠧⡀⠀⠀⠀⠀⠀⠀⠀⠀⠏⠂⠀⠀⠀⠀⠀⠀⠀⢰⡷⣿
⣧⢸⠀⠀⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⠀⠀⠘
⣿⠰⡷⠀⣿⣿⣶⣶⣶⣶⣶⣶⣶⣶⣿⣿⣿⣿⣿
⣿⡇⡁⠁⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠀⠀
⣿⣇⠀⡄⠹⣿⢿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠛⠁⠀⠀⠀⠀
⣿⣿⡇⠀⢀⠀⠀⠀⠈⠉⠉⠙⠿⠀⠀⠀⠀
⣿⣿⡇⢊⢺⣦⠈⠀⠀⠀⠀⢀⣾⡆⣀⣀⣀⣤
⣿⣿⣿⣦⡁⠿⣿⣤⣤⣤⡶⢿⣿⡠⡟⠻⣿⣿⡇
⣿⣿⣿⣿⣷⠉⢽⣿⣿⠋⣀⠻⢿⣧⠟⢠⣿⣿
⣿⣿⣿⣿⠛⠀⠀⠹⣿⠋⠙⠷⢦⣀⡠⠿⠟⡻
⣿⣿⡿⡃⠀⠀⠀⠀⠈⢣⣿⣧⠒⠐⠒⢀⣿⡇
⣿⡿⡽⠃⠀⠆⠄⠀⠀⠀⠻⢿⣷⣿⣿⣿⡿⠀
⡟⠀⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠉⠉⠁⠀⠀⠀⠀⠀⠀
seven minutes is all i can spare to play with you.
O-Robi 8.4. klo 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.3. klo 14.12 
-rep normally ate so much ♥♥♥♥ and was offended by my style of play :D
sophiamiller 20.3. klo 10.08 
+rep np bestie
hatemode 13.3. klo 16.03 
-rep nazi!!!