473,226 Members | 1,729 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,226 software developers and data experts.

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

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
May 31 '07 #1
3 4059
Valli <er*****@chellasoft.comwrote:
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?
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 - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
May 31 '07 #2
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
"Jon Skeet [C# MVP]" <sk***@pobox.comwrote in message
news:MP*********************@msnews.microsoft.com. ..
Valli <er*****@chellasoft.comwrote:
>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?

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 - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too

May 31 '07 #3
Valli <er*****@chellasoft.comwrote:
I want to send a text data which are delimited using the characters 250 &
254.
What do you mean by "characters 250 and 254"? Without referring to a
character encoding, there's no such concept.
eg, AAAA■3223■˙■
Ths source process is written on VB.NET & the destination process is written
on VB6.
Sounds like you need to find out exactly which encoding is being used
by VB6, and use the same one in your code.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
May 31 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Kitchen Bin | last post by:
Hi. I am trying to use Sockets to do multiple Send and Receives via HTTP (not simultaneously). A first pair of Send/Receives works fine and sure enough I receive HTML back, but the next...
6
by: Jaret Brower | last post by:
When I do a Socket.Send(byte) from a client, how do I know that I've reached the end of this data on the server? I've tried sending the length(4 bytes) at the beginning of the byte but I can't...
1
by: Hasan O | last post by:
hi , I have a problem with socket.send mesajlar = Encoding.ASCII.GetBytes("UGIR"); socketResultValue = socket.Send(mesajlar,0,mesajlar.Length, SocketFlags.None); socketResultValue =...
1
by: Hasan O | last post by:
hi , I have a problem with socket.send mesajlar = Encoding.ASCII.GetBytes("UGIR"); socketResultValue = socket.Send(mesajlar,0,mesajlar.Length, SocketFlags.None); socketResultValue =...
2
by: Alpha | last post by:
Hi, I'm able to make connection to a server using socket connection. However, when I send a command string the server just ignores it. All command string needs to start with "0xF9" at Byte 0. ...
11
by: hazz | last post by:
smtpClient.Send(message) is causing me problems as per specifics in the trace below. Email is sent but not without this error typically upon sending the second email, but sometimes when running...
0
by: desigan | last post by:
Hi, I did a sample program in C# for Socket Programming - One simple server and one client class. Following lines of code send the data ("TEST") to the Server. byte byteData =...
2
by: Alakhim Mohamad | last post by:
I'd like to send a message from server to client via socket with the following code ...........server......... string s="message"; Byte b=new Byte; b=ASCII.GetBytes(s); socket.Send(b);...
1
by: danfolkes | last post by:
Hey Everyone, I am trying to send repeated messages from a "Node" to a "Server". It works the first time I send the from the Node to Server, but after that it either errors, or does not do...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.