if (IsRequest)
{
// stuff here
}
[COLOR="#000000"] [COLOR="#808080"]#include[/COLOR] [COLOR="#B22222"]<netdb.h>[/COLOR]
[COLOR="#0000CD"]struct[/COLOR] [COLOR="#40E0D0"]hostent [/COLOR]*Host;
-----------------------------------------------------------------------------------------------------------------------------------------------------------
Host = gethostbyname([COLOR="#B22222"]"sprxtest.x10host.com"[/COLOR]);
[COLOR="#0000CD"]if[/COLOR] (Host == [COLOR="#800080"]NULL[/COLOR])
{
WriteinConsole([COLOR="#B22222"]"Unknown host\n"[/COLOR]);
[COLOR="#0000CD"]return [/COLOR][COLOR="#B22222"]""[/COLOR];
}[/COLOR]
Copyright © 2024, NextGenUpdate.
All Rights Reserved.