View Single Post
draft
Senior Member
Join Date: Jul 2007
Location: Russia, Saint-Petersburg
Old 08-20-2015 , 13:40   Re: Module: Threaded Sockets
Reply With Quote #25

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

#define PLUGIN "Test ASync Null Bytes"
#define VERSION "1.0"
#define AUTHOR "AImpressor"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_srvcmd("test_send""test_send")
}

public 
test_send() {
    new 
SOCKET:socket socket_create(SOCK_TYPE_TCP0)
    
socket_connect(socket"127.0.0.1"80)
}

public 
fw_sockConnected(SOCKET:socketcustomID)
{
    new 
packet[256]
    
formatex(packet255"%c%c%c%c"0x000x000x000x00)
    new 
len socket_send(socketpacket)
    
log_amx("Sending packet len: %d"len)

When im using "test_send", it gives me answer "Sending packet len: 0" - that means it ignores all my null bytes. Tested it on windows server with web. Could you please resolve this issue?
__________________
draft is offline