Re: SOCKET
From: John Smith (someone_at_some.where.inter.net)
Date: 08/02/04
- Next message: Shrishail Rana: "Opening and Reading the locked files"
- Previous message: Shrishail Rana: "Opening and Reading the locked files"
- In reply to: David Mair: "Re: SOCKET"
- Next in thread: David: "Re: SOCKET"
- Reply: David: "Re: SOCKET"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 2 Aug 2004 13:46:21 +0200
This is not entirely correct - I have come across problems communicating
over socket interface when no NIC is installed even when addressing the
'localhost' interface. My advice is - since many motherboards come with an
on-board network port and/or NICs are so cheap - "splurge" on a NIC.
Furthermore, since you are using sockets I assume you might want to actually
communicate across the network sometime - otherwise, you can use shared
memory/pipes/etc. for communicating between processes in the same host -
TCP/IP stack (socket) is an overkill for this...
"David Mair" <mairdanot@nothotmail.com> wrote in message
news:e7V68NBeEHA.3864@TK2MSFTNGP10.phx.gbl...
> Dave wrote:
>
> > Hi,
> > Can I use Winsock to communicate between two process on the same
computer
> > but without network card???
>
> You don't need a network card to install a Microsoft Loopback adapter
> then you have a local NIC driver without a NIC. At that point you could
> simply use WinSock as documented and connect to localhost (better) or
> the assigned IP address on the Loopback adapter. I mention this method
> only because I suspect (but don't actually know) that the IP stack is
> only loaded when bound to at least one NIC driver. If that isn't true
> then you only need to use WinSock with localhost as the source and target.
>
> FWIW, if you know you will only be communicating between processes on a
> single host then you can do lots of things other than sockets. Windows
> has shared memory, named pipes, Windows messages, COM, etc that can be
> used for inter-process communication.
- Next message: Shrishail Rana: "Opening and Reading the locked files"
- Previous message: Shrishail Rana: "Opening and Reading the locked files"
- In reply to: David Mair: "Re: SOCKET"
- Next in thread: David: "Re: SOCKET"
- Reply: David: "Re: SOCKET"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|