Click to See Complete Forum and Search --> : csocket on local host


liorco1
May 24th, 2004, 04:26 AM
Hi all,
I created csocket client on a LOCAL HOST.
Everything is fine exept when I take the LAN connection off
the message sending fail!!
Can I avoid this fail if I use LOCAL HOST socket ?
What is the relation to the LAN if I'm using LOCAL HOST connection ?


Thanks,
Lior.

liorco1
May 24th, 2004, 04:58 AM
Is there anyone that can help me ?

Lior

Andreas Masur
May 24th, 2004, 07:37 AM
[Moved thread]

Andreas Masur
May 24th, 2004, 07:38 AM
I somehow do not understand your question....if there is no network connection, then message cannot be sent...I do not see a problem with that but rather would expect a failure in this case.

May be I did not catch your real problem here... :confused:

liorco1
May 24th, 2004, 08:13 AM
Hi,
Both Client & Server are in the SAME PC.

Lior.

Andreas Masur
May 24th, 2004, 08:28 AM
What operating system?

liorco1
May 24th, 2004, 08:39 AM
Hi,
XP and it should run on win2K as well.
Lior

liorco1
May 24th, 2004, 09:52 AM
Hi,
Need your help on this one!!

Lior.

TheCPUWizard
May 24th, 2004, 09:54 AM
Even on localhost, you need a valid network connection!

It does not have to be connected to another PC, just something to make the card happy.

There are a number of drivers out there that are "virtual network cards" to address this issue, if you want/need to simulate a network.

liorco1
May 24th, 2004, 10:00 AM
Hi,
Thanks for your reply.
All I need is to send 6 bytes messages from c++ application to
a java application.
Is there a better way to do it ? I need a quick responding was!

Thanks,
Lior.

Andreas Masur
May 24th, 2004, 10:13 AM
The network settings for Windows 2000 and XP are different than for the older operating systems like NT. Thus, in this case you need to have a connection...

Mick
May 24th, 2004, 10:18 AM
If you have control over the code, and seeing as both processes are running on the same machine, why not just use another form of IPC like a filemapping.

liorco1
May 24th, 2004, 10:25 AM
Hi,
The messaging rate can be high and the files can be overwrite before the server side performs the handle.