TcpSocket Component like Delphi's ClientSocket/ServerSocket?

  • Thread starter Thread starter Samuel
  • Start date Start date
S

Samuel

I need an open source socket components library like Delphi's
ClientSocket and ServerSocket,who can tell me?if not found, give me
some other suggestion(simple is best, i only need tcp).
 
Samuel,

Why do you need an open source socket component? I mean, the framework
offers the Socket class, as well as the TcpClient/UdpClient classes for
working with sockets. What do you need on top of what they provide?

And if they don't give you something you need, what is stopping you from
using the Winsock APIs directly through the P/Invoke layer?
 
Samuel,

Why do you need an open source socket component? I mean, the framework
offers the Socket class, as well as the TcpClient/UdpClient classes for
working with sockets. What do you need on top of what they provide?

And if they don't give you something you need, what is stopping you from
using the Winsock APIs directly through the P/Invoke layer?

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)


I need an open source socket components library like Delphi's
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.
 
Hi,

Samuel said:
Samuel,

Why do you need an open source socket component? I mean, the
framework
offers the Socket class, as well as the TcpClient/UdpClient classes for
working with sockets. What do you need on top of what they provide?

And if they don't give you something you need, what is stopping you
from
using the Winsock APIs directly through the P/Invoke layer?

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)


I need an open source socket components library like Delphi's
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.


did you see the async methods of the Socket class?
 
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.

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Samuel said:
Samuel,

Why do you need an open source socket component? I mean, the
framework
offers the Socket class, as well as the TcpClient/UdpClient classes for
working with sockets. What do you need on top of what they provide?

And if they don't give you something you need, what is stopping you
from
using the Winsock APIs directly through the P/Invoke layer?

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)


I need an open source socket components library like Delphi's
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.
 
There is a opensource socket library that handles many protocols

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

originaly as a VCL delphi componet, they have a dll for dotnet
applications using a mono binding. It uses blocking sockets.

They are working on a pure dotnet version as well.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top