mIRC Home    About    Download    Register    News    Help

Print Thread
#64295 17/12/03 11:48 AM
Joined: Sep 2003
Posts: 10
Y
yythe1 Offline OP
Pikka bird
OP Offline
Pikka bird
Y
Joined: Sep 2003
Posts: 10
hello everybody .
i wanna know how can i send through UDP connection "00" . i can only send something different . is it possible to send "0" (not the code for zero , but zero in the packet itself) ?

#64296 17/12/03 02:31 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
/sockudp [-k] <name> <ip> <port> <data>

Sending to ip 1.2.3.4 on port 5678

/sockudp test 1.2.3.4 5678 0

The -k is if you want to be able to read what returns from the socket. (Use on Sockread event)


-KingTomato
#64297 17/12/03 10:02 PM
Joined: Sep 2003
Posts: 10
Y
yythe1 Offline OP
Pikka bird
OP Offline
Pikka bird
Y
Joined: Sep 2003
Posts: 10
i want to send 00 ascii code . not 30 ascii code for 0 .
how can i do that?

#64298 17/12/03 10:06 PM
Joined: Nov 2003
Posts: 227
H
Fjord artisan
Offline
Fjord artisan
H
Joined: Nov 2003
Posts: 227
I dont think there is anyway with mirc to send char 0 the null terminator, would a carrage return and line feed be what you are looking for?, char 13 and 10 or $crlf

#64299 18/12/03 04:58 AM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
I opened a query to a game site, and got the serve info (players, map, mod, etc) and i use $+(b,$null,$null) (which it was looking for "\x62\0\0" and it worked fine. I see no problem with $str($null,2)


-KingTomato

Link Copied to Clipboard