Raised This Month: $ Target: $400
 0% 

Sockets | server hangs


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Administrator
Member
Join Date: Jun 2014
Old 12-29-2014 , 07:12   Re: Sockets | server hangs
Reply With Quote #1

PHP Code:
#include <amxmodx>
#include <sockets_hz>

#define MESSAGE "blabla"
#define IP "46.254.21.136" // ip сайта
#define DOMAIN "74pp.ru" // домен
#define PHP "/vk_message.php" // путь до php скрипта

public plugin_init()
{
    
register_plugin("VK send message""0.1""Stolen")
    
register_concmd("vksend""send");
}

public 
send()
{
    new 
sockerrorpack[128]
    
format(packsizeof(pack), "GET %s?message=%s HTTP/1.1^nHost:%s^r^n^r^n"PHPMESSAGEDOMAIN)
    
sock socket_open(IP80SOCKET_TCPerror)
    
socket_send(sockpacksizeof(pack))
    
socket_close(sock)

so do not hang normally do?
Administrator is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:18.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode