473,406 Members | 2,847 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

TcpSocket Component like Delphi's ClientSocket/ServerSocket?

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

Oct 11 '07 #1
6 7999
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]
- mv*@spam.guard.caspershouse.com

"Samuel" <Pr****************@gmail.comwrote in message
news:11**********************@r29g2000hsg.googlegr oups.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).

Oct 11 '07 #2
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.

"Samuel" <Pr****************@gmail.comwrote in message
news:11**********************@r29g2000hsg.googlegr oups.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).

Oct 11 '07 #3
On 10 11 , 11 09 , "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guard.caspershouse.comwrote:
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]
- m...@spam.guard.caspershouse.com

"Samuel" <PrinceOfDataMin...@gmail.comwrote in message

news:11**********************@r29g2000hsg.googlegr oups.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).
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.

Oct 11 '07 #4
Hi,

"Samuel" <Pr****************@gmail.comwrote in message
news:11**********************@57g2000hsv.googlegro ups.com...
On 10 11 , 11 09 , "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guard.caspershouse.comwrote:
>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]
- m...@spam.guard.caspershouse.com

"Samuel" <PrinceOfDataMin...@gmail.comwrote in message

news:11**********************@r29g2000hsg.googleg roups.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).

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?
Oct 11 '07 #5
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]
- mv*@spam.guard.caspershouse.com

"Samuel" <Pr****************@gmail.comwrote in message
news:11**********************@57g2000hsv.googlegro ups.com...
On 10 11 , 11 09 , "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guard.caspershouse.comwrote:
>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]
- m...@spam.guard.caspershouse.com

"Samuel" <PrinceOfDataMin...@gmail.comwrote in message

news:11**********************@r29g2000hsg.googleg roups.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).

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.

Oct 11 '07 #6

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).
Oct 12 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Chuck Spears | last post by:
Does python have a component model? I'm currently using delphi and C++ builder to build windows apps and I am looking to also support linux. They seem to be waffling on their linux support so I...
1
by: J F | last post by:
Hi all I'm totally new to Visual Studio, coming from Delphi. My question, I'm sure is pretty trivial. I'm using C# I have a component class (Project/Add Class/Component Class). In this...
2
by: Glenn Shukster | last post by:
Hi In Delphi a call to SetSubComponent will expose all of a subcomponents properties and events at design time to the main component. Does anyone know how to do this in CSharp? eg MyObject +...
5
by: jqpdev | last post by:
Hello all... I'm coming from a Borland Delphi background. Delphi has a specific component called a Data Module. In the designer the Data Module behaves like a windows form. A developer can...
7
by: Padu | last post by:
Hi Everybody, I'm a newcomer from the Delphi world and I'm going to start developing my new project (a robot control app) in C#. One of the requirements is to communicate using RS232 (well,...
1
by: Tiago Gigli | last post by:
Guys, 1st of all.. sorry about my english ok? Im from Brazil... Im trying to get a RS connecting through 2 databases with the query below: SELECT scar..osbalcao.numeroos,...
4
by: Tugrul HELVACI | last post by:
Changing DisplayNames of my properties using PropertyGrid component, how ?? I'm using Delphi 2006 and I have a class defination like this: TPerson = class fPersonName : String;...
2
by: brendanmcdonagh | last post by:
import java.io.*; import java.net.*; import java.util.*; public class SocketConnect { public static void main(String args) { try {
3
by: brendanmcdonagh | last post by:
Hi all I have managed to suss out Sockets today and i have got a gui going with netbeans that sends text on button press to a serversocket on another computer. I receive the messages when i open...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.