June 15th, 2003, 05:31 AM
sending hex data to a socket
I want to use the winsock object to send hex data to a client. When I do this in VB it works fine. In CF I can connect to the socket but can only send data a string and not a hex value i.e: 0xFF11
Here is the VB:
Private Sub cmdRTS_Click()
If statRTS = True Then cmd = &H10FF Else cmd = &H11FF
Here is the CF:
writeoutput("Send data" & "<br>");
writeoutput(SockLite.GetErrorDescription(SockLite.LastSockErr) & "<br>");
It seems to be the same with PHP. It only wants to send string values ie: "xyx".
Any Idea why?