Groups | Blog | Home
all groups > dotnet general > may 2007 >

dotnet general : Want to send ascii data over the tcp socket in VB.NET.


Valli
5/31/2007 12:00:00 AM
Hi,

I want to send ascii data over the tcp socket in VB.NET.
When the data reaches the destination, the special characters in the
messages are recived as '?'. I meant the special characters which are not
keyborad characters.
Example chr(250), chr(254).

Is there any way to send these kind of special characters through sockets?
Is any examples available?

--
Regards
Valli

Jon Skeet [C# MVP]
5/31/2007 12:00:00 AM
[quoted text, click to view]

The first thing to know is that they're *not* ASCII characters. ASCII
only goes up to 127.

Now, we'll need to know a bit more information:

1) Do you actually have data as text that you want to send, or do you
just want to send the byte 250, then the byte 254?
2) What's on the other end of the socket?

--
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
Valli
5/31/2007 12:00:00 AM
I want to send a text data which are delimited using the characters 250 &
254.
eg, AAAAþ3223þúþ
Ths source process is written on VB.NET & the destination process is written
on VB6.

Regards
Valli

--
Regards
Valli
[quoted text, click to view]

Jon Skeet [C# MVP]
5/31/2007 5:27:49 PM
[quoted text, click to view]

What do you mean by "characters 250 and 254"? Without referring to a=20
character encoding, there's no such concept.

[quoted text, click to view]

Sounds like you need to find out exactly which encoding is being used=20
by VB6, and use the same one in your code.

--=20
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
AddThis Social Bookmark Button