Can't send TCP packet

Z

Zodiaq

Guest
Hello, i'm trying to send a string packet from step event in net-manager object by calling a send script. but for some reasons its not sent. in the networking event i used same method and it works perfectly. i'm absolutely stunned right now. here is a picture for explaining further.
(i'm using networksend_row and the server is made by c#)
upload_2018-2-26_12-41-2.png
 
Z

Zodiaq

Guest
update:
something wrong with send script, it works only once, i mean if i press key down it sends something if i press again it doesn't. here the send code:
Code:
show_debug_message("sending"+argument0);
buffer_seek(buff, buffer_seek_start, 0);
buffer_write(buff, buffer_string, argument0);

network_send_raw(sock, buff, buffer_get_size(buff));
show_debug_message("sent");
 

The-any-Key

Member
I think when you send it in the network event you got the non block connect message (you are now actually connected).
In the step event. Do you wait for the non block connect message before you start to send? If you send before you get the message you send nothing.
 
Top