with a C# client (and/or server, but server not important)?
I've got a scalable high speed (uses completion ports) C++ TCP/IP
communication server but I'd like to write a C# client that other C# devs at
our company can just drop in and use (it's an event and message passing
system.)
I'm sure, as most things C#/.Net, it's relatively simple, but if I can
discover some caveats the easy way rather than the hard way I'm always up
for that ;).
Technical minutae: The client must be able to transmit and receive
simultaneously (asynchronous) and ideally (but not necessarily) I'd like to
be able to share the socket amongst threads (like you can do with a raw
socket but not an MFC socket.)
Thanks,
WTH 2 1515
WTH,
The Socket class in .NET doesn't have any thread-affinity, so you should
be able to pass it among threads easily. Beyond the synchronization issues
(which arise from using any class on multiple threads), you should be able
to do what you want rather easily.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m
"WTH" <sp*******@Ih8i t.com> wrote in message
news:en******** ******@TK2MSFTN GP15.phx.gbl... with a C# client (and/or server, but server not important)?
I've got a scalable high speed (uses completion ports) C++ TCP/IP communication server but I'd like to write a C# client that other C# devs at our company can just drop in and use (it's an event and message passing system.)
I'm sure, as most things C#/.Net, it's relatively simple, but if I can discover some caveats the easy way rather than the hard way I'm always up for that ;).
Technical minutae: The client must be able to transmit and receive simultaneously (asynchronous) and ideally (but not necessarily) I'd like to be able to share the socket amongst threads (like you can do with a raw socket but not an MFC socket.)
Thanks,
WTH
Nicholas Paldino [.NET/C# MVP] <mv*@spam.guard .caspershouse.c om> loquated
like no one had ever loquated before with: WTH,
The Socket class in .NET doesn't have any thread-affinity, so you should be able to pass it among threads easily. Beyond the synchronization issues (which arise from using any class on multiple threads), you should be able to do what you want rather easily.
Hope this helps.
I'm really starting to love .Net/C#/CLR... ;)
Thanks, it's all still a little new to a long time *nix/Win32 C++
X11R6/Motif/Qt/MFC developer. "It CAN'T be this easy..." LOL.
WTH This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Earl |
last post by:
I've been on a mission this past year to move from VB6 to .Net. I'm
fortunate(!?) not to have the big catalog of some long-time VB developers,
although I have some CE apps that have to be entirely rewritten in CF. A lot
of what I develop has to be written for the PPc, so I knew I would be
looking for information in .Net, ADO.Net, CF -- and SQL Server.
So in the spirit that others might benefit from my journey, here are my
observations....
|
by: Jhon smith |
last post by:
Hi all,Just wondering are there any problems with learning c from older
books,as I have picked up some from 1988,1994,1997,1998.
By using books of this age(Im on a tight budget)am I going to missout on
anything in the langauge or has C remaind similar.
I intend to use Dev-C++ on the windows platform.
If any one feels theres anything I should be aware of,please help me out,I
feel a bit lost with all thats out there regarding this language....
|
by: Akhil |
last post by:
Hi,
What books or periodicals to follow to keep abreast with latest in .Net.
Apologies for throwing a non-tech stuff.
Cheers,
Akhil
|
by: Steve H. |
last post by:
Hi all,
I'm searching for a few good books on asp.net and c#. I'm afraid of buying
books here in denmark that i cant read though before i get them, becuase 90%
of them are just pure junk. I dont need 3 chapters on object oriented
programming or c# inside a asp.net book.
Looking mainly for reference books or tactics books that would cover all
aspects of asp.net, like security, controls, session managment, web.config
and so on.
|
by: John |
last post by:
I am looking for VB.Net books which provide a lot of exercises (preferrably
with all the answers worked out on CD).
In earlier reactions Ken Tucker and M.Posseth recommended a few books.
Thanks for both of your reactions.
Ken included the links, so it is clear which books he recommended (I will
get them!)
M.Posseth recommended "the complete MCSD self paced training kit" and
"Programming Microsoft Visual Basic form Francesco Balena",...
| |
by: Asfar |
last post by:
Hi,
I am just starting of VC++ .Net 2005.
Can someone suggest of any good books or any good websites for beginners.
Thanks,
-Asfar
|
by: Mark |
last post by:
I'm a C++/MFC programmer. I'm looking for a good book ,with samples, on c#.
Can someone recommend on such?
Thanks
|
by: Michael |
last post by:
Hi,
I've decided that it's time I picked up VB.net having programmed in VB6 for
the past 5 years and was wondering if there was a book that was designed for
the VB6 user as opposed to going through all the basics all over again "This
is a variable" etc?
Failing is there a particular book that comes highly recommended?
Cheers,
|
by: Daniel |
last post by:
Looking to see if anyone can offer some suggestions on some good VB.net
books?
looking for beginner to intermidiate and to expert..
Any suggestions?
--
ASP, SQL2005, DW8 VBScript
|
by: ZenMasta |
last post by:
Hi, I have a couple of csharp books for beginners that I never used. They
were published around the 1.0 framework era. Would I be doing a friend a
disservice by giving him these books? ie. should he buy more recently
published books instead or will the ones I have be okay.
I would hate for him to use these books and then feel like he's having to
relearn 3.0 framework code. I'm not a programmer myself so I really don't
know how much is...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |