1831 |
from the server. |
from the server. |
1832 |
|
|
1833 |
You can use non-printable charachters in a send and an expect |
You can use non-printable charachters in a send and an expect |
1834 |
string if needed. This option can be useful when testing some |
string if needed. Use the hex notation, \0xHEXHEX to send any |
1835 |
protocols. To send a non-printable char, use the hex notation |
char in the range \0x00-\0xFF, that is, 0-255 in decimal. This |
1836 |
such as \x0A in the string. |
may be useful when testing some network protocols, particularly |
1837 |
|
those over UDP. An example, to test a quake 3 server you can |
1838 |
|
use the following, |
1839 |
|
|
1840 |
|
send "\0xFF\0xFF\0xFF\0xFFgetstatus" |
1841 |
|
expect "sv_floodProtect|sv_maxPing" |
1842 |
|
|
1843 |
Finally, send/expect can be used with any |
Finally, send/expect can be used with any |
1844 |
socket type, such as TCP sockets, UNIX sockets and UDP sockets. |
socket type, such as TCP sockets, UNIX sockets and UDP sockets. |