J
John Smith
I am sending a byte value of Chr(128) to a Listener and it is coming back as
Chr(63) any ideas? Anything greater than 128 up to 152 is returning a
Char(63). What would cause this to happen?
Sample code is below:
Dim oTcpClient As New System.Net.Sockets.TcpClient
oTcpClient.Connect(DeviceIPAddress, DevicePort)
Dim objNetworkStream As NetworkStream = oTcpClient.GetStream()
Dim sendBytes As [Byte]()
sendBytes = Encoding.ASCII.GetBytes(Chr(intPosition))
objNetworkStream.Write(sendBytes, 0, sendBytes.Length)
Chr(63) any ideas? Anything greater than 128 up to 152 is returning a
Char(63). What would cause this to happen?
Sample code is below:
Dim oTcpClient As New System.Net.Sockets.TcpClient
oTcpClient.Connect(DeviceIPAddress, DevicePort)
Dim objNetworkStream As NetworkStream = oTcpClient.GetStream()
Dim sendBytes As [Byte]()
sendBytes = Encoding.ASCII.GetBytes(Chr(intPosition))
objNetworkStream.Write(sendBytes, 0, sendBytes.Length)