
Signature
- Nicholas Paldino [.NET/C# MVP]
- mvp@spam.guard.caspershouse.com
On 10 11 , 11 09 , "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guard.caspershouse.com> wrote:
> Samuel,
>
[quoted text clipped - 12 lines]
> > ClientSocket and ServerSocket,who can tell me?if not found, give me
> > some other suggestion(simple is best, i only need tcp).
it is too complex.
use SocketComponent on Delphi, you can process packet message by only
bind OnRead event;
use Listener on C#, i must write more code such as multi-thread for
listener.
maybe i use delphi too long, use .net too short.
can you provide a classic tcp application for me?
thanks.
Ignacio Machin ( .NET/ C# MVP ) - 11 Oct 2007 18:45 GMT
Hi,
> On 10 11 , 11 09 , "Nicholas Paldino [.NET/C# MVP]"
> <m...@spam.guard.caspershouse.com> wrote:
[quoted text clipped - 25 lines]
> can you provide a classic tcp application for me?
> thanks.
did you see the async methods of the Socket class?
Nicholas Paldino [.NET/C# MVP] - 11 Oct 2007 18:51 GMT
Samuel,
You aren't required to write multi-threaded code if you don't have a
need for it. What exactly are you trying to achieve with the sockets? With
the Socket class, you can just call Read or Write and read/write to the
underlying socket. Couldn't be simpler, really.

Signature
- Nicholas Paldino [.NET/C# MVP]
- mvp@spam.guard.caspershouse.com
> On 10 11 , 11 09 , "Nicholas Paldino [.NET/C# MVP]"
> <m...@spam.guard.caspershouse.com> wrote:
[quoted text clipped - 25 lines]
> can you provide a classic tcp application for me?
> thanks.