473,396 Members | 1,766 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,396 software developers and data experts.

Can I use UDP instead of TCP as IPC?

P
Hello.
I launch two programs in a machine.
These programs communicate each other by TCP socket.
(OS : Windows Server 2003 x64)

Here is my question.

Can I use UDP instead of TCP as IPC?
Because they are in same machine,
I think, there'd be no packet loss and even the orders of packet would be
guaranteed, isn't it?
If it is, then I can trust UCP.
Is there any MS document about that?

And, what could be the most fast and effective mechanic as IPC?
As Jeffrey said, if they are in a same machine, then IPC, socket, pipe, and
so on use MMF. Then, maybe the performance of these wouldn't be that much.
Is it true?

Thanks, in advance.


Jan 10 '07 #1
2 2607
You could try but I think anyone that has been in the network game at all is
going to tell you that while it sounds like you could that doe snot mean you
should.

UDP does NOT guarantee delivery nor the order of arrival of any packet.

SHOULD they be ok as long as the packets stay on the same machine? PROBABLY

Is it guaranteed to be that way? NOPE

Would I count on it as a software developer? NOPE
"P" <ri******@naver.comwrote in message
news:eT**************@TK2MSFTNGP04.phx.gbl...
Hello.
I launch two programs in a machine.
These programs communicate each other by TCP socket.
(OS : Windows Server 2003 x64)

Here is my question.

Can I use UDP instead of TCP as IPC?
Because they are in same machine,
I think, there'd be no packet loss and even the orders of packet would be
guaranteed, isn't it?
If it is, then I can trust UCP.
Is there any MS document about that?

And, what could be the most fast and effective mechanic as IPC?
As Jeffrey said, if they are in a same machine, then IPC, socket, pipe,
and
so on use MMF. Then, maybe the performance of these wouldn't be that much.
Is it true?

Thanks, in advance.


Jan 10 '07 #2
P
Yes. I just wonder whether MS say anything about Socket mechanic if they
pass packet in a same machine.
I heard that, in Linux, they use shortcut for performance if Packet is going
to other program in the same machine. But, I'm not assure. :)
Thank for your help.
Sincere.

"Ray Cassick" <rc*************@enterprocity.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
You could try but I think anyone that has been in the network game at all
is going to tell you that while it sounds like you could that doe snot
mean you should.

UDP does NOT guarantee delivery nor the order of arrival of any packet.

SHOULD they be ok as long as the packets stay on the same machine?
PROBABLY

Is it guaranteed to be that way? NOPE

Would I count on it as a software developer? NOPE
"P" <ri******@naver.comwrote in message
news:eT**************@TK2MSFTNGP04.phx.gbl...
>Hello.
I launch two programs in a machine.
These programs communicate each other by TCP socket.
(OS : Windows Server 2003 x64)

Here is my question.

Can I use UDP instead of TCP as IPC?
Because they are in same machine,
I think, there'd be no packet loss and even the orders of packet would be
guaranteed, isn't it?
If it is, then I can trust UCP.
Is there any MS document about that?

And, what could be the most fast and effective mechanic as IPC?
As Jeffrey said, if they are in a same machine, then IPC, socket, pipe,
and
so on use MMF. Then, maybe the performance of these wouldn't be that
much.
Is it true?

Thanks, in advance.



Jan 11 '07 #3

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

Similar topics

3
by: Aardwolf | last post by:
I've had PHP on my Win2K server running IIs 5 for about 2 weeks now. I have an annoying problem in that I can not run the php scripts/pages locally, instead they open up in the browser as a...
7
by: svilen | last post by:
hello again. i'm now into using python instead of another language(s) for describing structures of data, including names, structure, type-checks, conversions, value-validations, metadata etc....
8
by: joe | last post by:
hi i am trying to write a insted of insert trigger to create a unique id when i insert a record in my database. can anyone give me an example with out using identity. thanks
3
by: cfxchange | last post by:
I am looking into work-arounds for what seems to be a flaw, or "undocumented feature" of SQL Server replication and Instead of Delete triggers not playing together. It seems that if you want to...
8
by: Stuart McGraw | last post by:
Is Microsoft full of #*$#*% (again) or am I badly misunderstanding something? Quote from Microsoft's T-SQL doc: > INSTEAD OF triggers are executed instead of the triggering action. > These...
5
by: Chris | last post by:
I'm attempting to get Instead Of triggers working. My platform in Solaris, DB2 verison 8.1.x (not sure which). If I create two simple tables with 1 row each: create table test_cc_1 (col1...
25
by: dixie | last post by:
I have some code that adds new records into a table for each ID in a list box when a button on a form is clicked. This works fine. My problem now is that I wish to be able to edit all the records...
4
by: Mark Reed | last post by:
Hi all, I have the following code which imports the contents of all files within a set folder which works excellently. Once it has imported from each file, it deletes the file. Is there a way that...
4
by: Jim Hammond | last post by:
It would be udeful to be able to get the current on-screen values from a FormView that is databound to an ObjectDataSource by using a callback instead of a postback. For example: public void...
12
by: comp.lang.php | last post by:
I am using CLI PHP to run a PHP script, c:\wamp\php\php.exe, but instead of executing my script, it's actually displaying the raw code instead. How can I run my code using CLI PHP? I installed...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
Oralloy
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,...
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
tracyyun
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...
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,...

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.