Home All Groups Group Topic Archive Search About

Simple TCP communications examples

Author
6 May 2006 1:42 AM
jward448
Hello All,

I have to write a procedure that does the following:

- Connect to a TCP port on a remote computer that has a simple listener
application already installed.
- Send a series of strings and end by sending a NULL '\0'

This is unidirectional communication only. I've done this a long time
ago in
VB6. I'm up to speed on the Visual Studio 2005 IDE but cannot as
easily, as
I did in the past, figure out simple network communications. Any
pointers to
simple example code would be appreciated.

Regards,

James

Author
7 May 2006 5:11 PM
Michel Posseth [MCP]
Hello James ,,


are you still in need for an example ??

i have once written two classes a sender and a receiver that can easily be
re used in anny project
i used it to detect other instances off my app running on the network  and
exchange some simple data ( texts strings )
howevere you can extend it to anything you like

if you send me an e-mail on  mic***@posseth.com  i can send the package to
you  as a zipped atachment

regards

Michel Posseth [MCP]


Show quoteHide quote
"jward448" <jward***@yahoo.com> schreef in bericht
news:1146879755.936689.272690@y43g2000cwc.googlegroups.com...
> Hello All,
>
> I have to write a procedure that does the following:
>
> - Connect to a TCP port on a remote computer that has a simple listener
> application already installed.
> - Send a series of strings and end by sending a NULL '\0'
>
> This is unidirectional communication only. I've done this a long time
> ago in
> VB6. I'm up to speed on the Visual Studio 2005 IDE but cannot as
> easily, as
> I did in the past, figure out simple network communications. Any
> pointers to
> simple example code would be appreciated.
>
> Regards,
>
> James
>
Author
15 May 2006 7:21 AM
jward448
Michel,

Yes, please. I'd love a copy of your classes. I wasn't able to email
you direct because your email address is munged in the post. Please
send the package to: jward448 at yahoo dot com.

Thanks,

James