EDIT 2: The problem to the below might be due to this: For some reason my client can only send a message in it's create event: right after I use tcp_connect to get a tcpsocket handle. No other messages can be sent outside this event, unless immediately beforehand I reset the tcpsocket handle with another tcp_connect... Any ideas what I'm doing wrong or how to fix it? I'll post the code if you want it but there is a fair bit of junk in it to fill in reminders for myself for later work.
Edit: I have the scripts:
/* write_string_delim(socket,string); argument0: socket argument1: string will be given a delimiter automatically */ write_ushort(argument0,string_length(argument1)); write_string(argument0,argument1);and
/* read_string_delim(socekt); argument0: socket */ var length, string; length = read_ushort(argument0); string = read_string(argument0,length); return string;
I'm not sure what's going on because the code:
will not allow the socket to send it's data, but this returns no errors via the extension precaution function... I'm unsure whether it is the mac address function somehow screwing it up or my code, although it must be noted that my write_string_delim works for every other string I've tested. show_message(get_macadr) returns a proper string mac address so I'm stumped.
Edited by jon sploder, 13 February 2012 - 07:58 AM.