Use binary variables.
alias bsockwrite {
bset &buffer 1 $$2-
sockwrite $1 &buffer
}
/bsockwrite <socket name> <ascii value> [ascii value] [etc]
eg.
/bsockwrite asciiart 104 101 108 108 111 32 32 32 32 32 32 32 32 32 32 119 111 114 108 100This will send "hello__________world" through the "asciiart" socket.