Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / October 2007

Tip: Looking for answers? Try searching our database.

TcpSocket Component like Delphi's ClientSocket/ServerSocket?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Samuel - 11 Oct 2007 15:57 GMT
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).
Nicholas Paldino [.NET/C# MVP] - 11 Oct 2007 16:09 GMT
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?

Signature

         - Nicholas Paldino [.NET/C# MVP]
         - mvp@spam.guard.caspershouse.com

>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 - 11 Oct 2007 17:25 GMT
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.
amdrit - 11 Oct 2007 16:10 GMT
http://www.mentalis.org/soft/projects/ssocket/

But what can't you do with TCPListener and TCPClient that would require open
source?  System.Net.Sockets will allow you to wrap custom logic in.

>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).
Peted - 12 Oct 2007 10:55 GMT
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.

>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).

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.