Raised This Month: $ Target: $400
 0% 

Sockets | server hangs


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Administrator
Member
Join Date: Jun 2014
Old 12-28-2014 , 09:20   Sockets | server hangs
Reply With Quote #1

Please tell me why the server hangs when sending a message?

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

#define MESSAGE "Сообщение"
#define IP "127.0.0.1" // ip сайта
#define DOMAIN "domain.ru" // домен
#define PHP "/vk_message.php" // путь до php скрипта

public plugin_init()
{
    
register_plugin("VK send message""0.1""Stolen")
    
register_clcmd("say /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)

Administrator is offline
 



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