mIRC Home    About    Download    Register    News    Help

Print Thread
UDP Sockets #25432 22/05/03 01:22 AM
Joined: May 2003
Posts: 1
L
LGBR Offline OP
Mostly harmless
OP Offline
Mostly harmless
L
Joined: May 2003
Posts: 1
Ok, I have a server in which, when you send a certain UDP string, it will respond with some data for you. So here is the code I wrote to do this:

on *:sockopen:*:{ echo Socket Opened | echo $name $1- }
on *:udpread:*:{ sockread %var | echo %var }

I use the command:
/sockudp -nk hlserv 12.230.34.40 27015 ˙˙˙˙details

When used, all that happens is "Socket Opened" is echoed. Whats wrong?

Re: UDP Sockets #25433 22/05/03 05:12 AM
Joined: Feb 2003
Posts: 309
C
CloCkWeRX Offline
Fjord artisan
Offline
Fjord artisan
C
Joined: Feb 2003
Posts: 309
Try $sockname, rather than $name. I can't test it coz i have no mIRC atm.

I also, have had problems with UDP - I haven't found a single answer or decent tutorial and gave up. But since its more than just me I'll keep looking into it to see if its just a mIRC thing, a script thing, or we are both retarded.


Last edited by CloCkWeRX; 22/05/03 05:13 AM.
Re: UDP Sockets #25434 22/05/03 06:57 AM
Joined: Dec 2002
Posts: 699
N
Nimue Offline
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 699
on *:udpread:hlserv:{ sockread -f %var | echo -a %var }