Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
|
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 26th, 2007, 09:29 PM
Authorized User
 
Join Date: Jul 2007
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default Serial to tcp/ip

Hello,
  I have to read data from serail port(com) and then send that data to other computer through tcp/ip communication.
  wht i m thinking is to read the data in serial port store it in some file and then send it through some other pc through tcp/ip.Is there any way to avoid storing the data. Or is there any other method.
 thanks in advance.

watashi

 
Old August 28th, 2007, 01:48 AM
Registered User
 
Join Date: Aug 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by watashi
 Hello,
I have to read data from serail port(com) and then send that data to other computer through tcp/ip communication.
wht i m thinking is to read the data in serial port store it in some file and then send it through some other pc through tcp/ip.Is there any way to avoid storing the data. Or is there any other method.
thanks in advance.

watashi
I assume that the other computers are connected in a LAN.
If the other computers have defined a "shared" folder you can simply store a file there.
Otherwise you will have to build a program (windows service) that runs on the other computers and listens to a tcp-port (see the chapters about .NET Remoting and Windows Services in "Professional Visual C# 2005"). You can also build a web-service (if you have IIS available on the other computers). Of course you will have to define one or a few classes (message-classes) for sending/receiving the data and an appropriate version of .NET Framework must be installed on every computer.
If you use remoting or a web-service you don't have to store the data first. You can directly send it to the other computers, but as I mentioned before, the other computers must have some program running for communication.

Nico






Similar Threads
Thread Thread Starter Forum Replies Last Post
ZModem over TCP/IP geogomez Pro VB 6 4 December 27th, 2007 03:59 AM
another tcp/ip related query watashi C# 2005 0 August 30th, 2007 07:31 PM
tcp\ip communication in asp.net 1.1 Pramods BOOK: Beginning ASP.NET 1.0 0 July 16th, 2007 03:51 AM
TCP/IP HELP jpsultana VB.NET 2002/2003 Basics 0 September 29th, 2005 01:37 PM
TCP/IP Data is Being Concatenated owain Pro VB 6 2 December 9th, 2003 08:12 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.