HighTechTalks DotNet Forums  

Intercommunication control?

Dotnet Framework (Remoting) microsoft.public.dotnet.framework.remoting


Discuss Intercommunication control? in the Dotnet Framework (Remoting) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
M O J O
 
Posts: n/a

Default Intercommunication control? - 10-31-2007 , 05:33 AM






Hi,

I have absolutely no clue how to do TCP Client/Server stuff.

I would like to drop a "server control" on my server form, a "client
control" on my client form, set some parameters like port and then just
enable it. The controls will take care of the rest (like if the server
restarts, the client will reconnect automatically and so on).

Is there a component "out there" I can drop on my form and don't worry
about the communication?? I'm willing to pay for it - it just have to work.

Thanks!

M O J O

Reply With Quote
  #2  
Old   
Tom Shelton
 
Posts: n/a

Default Re: Intercommunication control? - 10-31-2007 , 09:20 AM






On Oct 31, 4:33 am, M O J O <m... (AT) nospam (DOT) nospam> wrote:
Quote:
Hi,

I have absolutely no clue how to do TCP Client/Server stuff.

I would like to drop a "server control" on my server form, a "client
control" on my client form, set some parameters like port and then just
enable it. The controls will take care of the rest (like if the server
restarts, the client will reconnect automatically and so on).

Is there a component "out there" I can drop on my form and don't worry
about the communication?? I'm willing to pay for it - it just have to work.

Thanks!

M O J O
You can try indy:

http://www.indyproject.org/index.en.aspx

Haven't used it myself, so I'm not sure how easy/difficult it is to
use - but seems to be a popular choice. There's also Catalyst's
socketwrench stuff:

http://www.catalyst.com/products/socketwrench/

I've worked with this in the past, seems to work pretty well. I'm
pretty sure nsoftware has some socket communications components as
well.

Still, my preference is to just use the classes in System.Net. They
really aren't that hard to use, and they are free Here is a pretty
good starting point:

http://msdn2.microsoft.com/en-us/library/b6xa24z5.aspx

Using them syncronously, is the easiest - but, asyncronously is more
scalable. So, depending on how many clients you expect, you can
decide wich way to go.

--
Tom Shelton



Reply With Quote
  #3  
Old   
Spam Catcher
 
Posts: n/a

Default Re: Intercommunication control? - 10-31-2007 , 01:11 PM



Tom Shelton <tom_shelton (AT) comcast (DOT) net> wrote in
news:1193840415.520879.158000 (AT) 50g2000hsm (DOT) googlegroups.com:

Quote:
On Oct 31, 4:33 am, M O J O <m... (AT) nospam (DOT) nospam> wrote:
Hi,

I have absolutely no clue how to do TCP Client/Server stuff.

I would like to drop a "server control" on my server form, a "client
control" on my client form, set some parameters like port and then
just enable it. The controls will take care of the rest (like if the
server restarts, the client will reconnect automatically and so on).

Is there a component "out there" I can drop on my form and don't
worry about the communication?? I'm willing to pay for it - it just
have to work.

Thanks!

M O J O

You can try indy:

http://www.indyproject.org/index.en.aspx

Don't use sockets unless you absolutely have to - it's too much work for
a beginner.

Look at using WCF or remoting instead.



Reply With Quote
  #4  
Old   
M O J O
 
Posts: n/a

Default Re: Intercommunication control? - 10-31-2007 , 03:00 PM



Hi Tom,

Thank you for answering me.

I will look at all your suggestions.

Thanks agan!

)

M O J O

Tom Shelton skrev:
Quote:
On Oct 31, 4:33 am, M O J O <m... (AT) nospam (DOT) nospam> wrote:
Hi,

I have absolutely no clue how to do TCP Client/Server stuff.

I would like to drop a "server control" on my server form, a "client
control" on my client form, set some parameters like port and then just
enable it. The controls will take care of the rest (like if the server
restarts, the client will reconnect automatically and so on).

Is there a component "out there" I can drop on my form and don't worry
about the communication?? I'm willing to pay for it - it just have to work.

Thanks!

M O J O

You can try indy:

http://www.indyproject.org/index.en.aspx

Haven't used it myself, so I'm not sure how easy/difficult it is to
use - but seems to be a popular choice. There's also Catalyst's
socketwrench stuff:

http://www.catalyst.com/products/socketwrench/

I've worked with this in the past, seems to work pretty well. I'm
pretty sure nsoftware has some socket communications components as
well.

Still, my preference is to just use the classes in System.Net. They
really aren't that hard to use, and they are free Here is a pretty
good starting point:

http://msdn2.microsoft.com/en-us/library/b6xa24z5.aspx

Using them syncronously, is the easiest - but, asyncronously is more
scalable. So, depending on how many clients you expect, you can
decide wich way to go.

--
Tom Shelton


Reply With Quote
  #5  
Old   
M O J O
 
Posts: n/a

Default Re: Intercommunication control? - 10-31-2007 , 03:01 PM



Hiya,

Well I dunno about remoting either ... is there a good place for
begginers to learn?

Thanks!!

M O J O

Spam Catcher skrev:
Quote:
Tom Shelton <tom_shelton (AT) comcast (DOT) net> wrote in
news:1193840415.520879.158000 (AT) 50g2000hsm (DOT) googlegroups.com:

On Oct 31, 4:33 am, M O J O <m... (AT) nospam (DOT) nospam> wrote:
Hi,

I have absolutely no clue how to do TCP Client/Server stuff.

I would like to drop a "server control" on my server form, a "client
control" on my client form, set some parameters like port and then
just enable it. The controls will take care of the rest (like if the
server restarts, the client will reconnect automatically and so on).

Is there a component "out there" I can drop on my form and don't
worry about the communication?? I'm willing to pay for it - it just
have to work.

Thanks!

M O J O
You can try indy:

http://www.indyproject.org/index.en.aspx


Don't use sockets unless you absolutely have to - it's too much work for
a beginner.

Look at using WCF or remoting instead.


Reply With Quote
  #6  
Old   
Tom Shelton
 
Posts: n/a

Default Re: Intercommunication control? - 10-31-2007 , 06:30 PM



On Oct 31, 12:11 pm, Spam Catcher <spamhoney... (AT) rogers (DOT) com> wrote:
Quote:
Tom Shelton <tom_shel... (AT) comcast (DOT) net> wrote innews:1193840415.520879.158000 (AT) 50g2000hsm (DOT) googlegroups.com:





On Oct 31, 4:33 am, M O J O <m... (AT) nospam (DOT) nospam> wrote:
Hi,

I have absolutely no clue how to do TCP Client/Server stuff.

I would like to drop a "server control" on my server form, a "client
control" on my client form, set some parameters like port and then
just enable it. The controls will take care of the rest (like if the
server restarts, the client will reconnect automatically and so on).

Is there a component "out there" I can drop on my form and don't
worry about the communication?? I'm willing to pay for it - it just
have to work.

Thanks!

M O J O

You can try indy:

http://www.indyproject.org/index.en.aspx

Don't use sockets unless you absolutely have to - it's too much work for
a beginner.

Look at using WCF or remoting instead.- Hide quoted text -

- Show quoted text -
I wouldn't say that it is necessarily easier from a beginers
standpoint. I would say that simple socket communication is far
easier both from a programming and setup perspective....

That said, I agree that often wcf/remoting is probably the best
answer.

--
Tom Shelton



Reply With Quote
  #7  
Old   
Andrew Faust
 
Posts: n/a

Default Re: Intercommunication control? - 10-31-2007 , 07:07 PM



Quote:
You can try indy:

http://www.indyproject.org/index.en.aspx
I haven't used Indy for several years and it was Delphi only at the time.
However, I loved them and would highly recommend them. Plus they're open
source with a very permissive license.

--
Andrew Faust
andrew[at]andrewfaust.com
http://www.andrewfaust.com


"Tom Shelton" <tom_shelton (AT) comcast (DOT) net> wrote

Quote:
On Oct 31, 4:33 am, M O J O <m... (AT) nospam (DOT) nospam> wrote:
Hi,

I have absolutely no clue how to do TCP Client/Server stuff.

I would like to drop a "server control" on my server form, a "client
control" on my client form, set some parameters like port and then just
enable it. The controls will take care of the rest (like if the server
restarts, the client will reconnect automatically and so on).

Is there a component "out there" I can drop on my form and don't worry
about the communication?? I'm willing to pay for it - it just have to
work.

Thanks!

M O J O

You can try indy:

http://www.indyproject.org/index.en.aspx

Haven't used it myself, so I'm not sure how easy/difficult it is to
use - but seems to be a popular choice. There's also Catalyst's
socketwrench stuff:

http://www.catalyst.com/products/socketwrench/

I've worked with this in the past, seems to work pretty well. I'm
pretty sure nsoftware has some socket communications components as
well.

Still, my preference is to just use the classes in System.Net. They
really aren't that hard to use, and they are free Here is a pretty
good starting point:

http://msdn2.microsoft.com/en-us/library/b6xa24z5.aspx

Using them syncronously, is the easiest - but, asyncronously is more
scalable. So, depending on how many clients you expect, you can
decide wich way to go.

--
Tom Shelton



Reply With Quote
  #8  
Old   
Spam Catcher
 
Posts: n/a

Default Re: Intercommunication control? - 10-31-2007 , 09:04 PM



Tom Shelton <tom_shelton (AT) comcast (DOT) net> wrote in
news:1193873411.358972.109790 (AT) i38g2000prf (DOT) googlegroups.com:

Quote:
I wouldn't say that it is necessarily easier from a beginers
standpoint. I would say that simple socket communication is far
easier both from a programming and setup perspective....
There's a lot of stuff the standard .NET socket libraries don't take into
account, such as buffer overflows, errors during data transfer, sending
large amount of data, etc etc. There's just too many small details for a
beginner to worry about.

Quote:
That said, I agree that often wcf/remoting is probably the best
answer.
I wrote a socket server which handles >150 simultaneous call center
clients... I swore to myself I'll never do that again ;-)


Reply With Quote
  #9  
Old   
Tom Shelton
 
Posts: n/a

Default Re: Intercommunication control? - 10-31-2007 , 11:25 PM



On Oct 31, 8:04 pm, Spam Catcher <spamhoney... (AT) rogers (DOT) com> wrote:
Quote:
Tom Shelton <tom_shel... (AT) comcast (DOT) net> wrote innews:1193873411.358972.109790 (AT) i38g2000prf (DOT) googlegroups.com:

I wouldn't say that it is necessarily easier from a beginers
standpoint. I would say that simple socket communication is far
easier both from a programming and setup perspective....

There's a lot of stuff the standard .NET socket libraries don't take into
account, such as buffer overflows, errors during data transfer, sending
large amount of data, etc etc. There's just too many small details for a
beginner to worry about.

That said, I agree that often wcf/remoting is probably the best
answer.

I wrote a socket server which handles >150 simultaneous call center
clients... I swore to myself I'll never do that again ;-)
I am very aware of what .NET sockets are and what they aren't. I've
done lots of work with them - everything from writing my own
webserver, email clients, and news readers. Not to mention, a
predictive dialer system that integrated with a legacy system via a
tcp/ip server that handled probably double 150+ connections and a
service to pull data off of an sql database for clients running on a
Unix environment.... Yes, there are details you have to deal with when
doing more complex stuff - but, it sure sounds to me that the OP isn't
dealing with complex stuff.

Still - I agree that in his case, wcf/remoting is probably a better
answer. But, I don't necessarily agree that remoting is simpler, it
has it's details to work through as well. Like the differences
between client and server activated objects? What is a singleton?
What protocol should be used for serialization? etc, etc. Anway, I
don't want to get into an argument. The OP asked about tcp/ip
controls - so I answered that. You added the thought to use
remoting. I think the OP has enought information now to make an
informed decision

--
Tom Shelton



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.