Communicating between Apps

This is a discussion on Communicating between Apps within the Windows Programming forums, part of the Platform Specific Boards category; I am trying to port a Multithreaded app from a multi-server Netware architecture to a Single server Windows 2000 architecture. ...

  1. #1
    Registered User
    Join Date
    Sep 2002
    Posts
    11

    Question Communicating between Apps

    I am trying to port a Multithreaded app from a multi-server Netware architecture to a Single server Windows 2000 architecture.

    At present, I am using the Netware API to provide IPX sockets functionality to communicate between the Apps.

    What I want to do is use Windows Sockets (Winsock2) to do this communication.

    I have managed to find out how to do Server to Server communication using IP addresses, but I can't seem to find how to do similar communication on the same server.

    i.e., instead of specifying an IP address to send/receive from, I'd like to specify a handle to another application.

    Does anyone have any ideas, or know where to look for such stuff?

    Ta.

    D.S.

  2. #2
    Registered User johnnie2's Avatar
    Join Date
    Aug 2001
    Posts
    186

    Re: Communicating between Apps

    Originally posted by Dirty Sanchez
    I have managed to find out how to do Server to Server communication using IP addresses, but I can't seem to find how to do similar communication on the same server.
    You'd do this by specifying the loopback address, 127.0.0.1, for both connections. That particular address causes Winsock to send or receive data from the local host (the same computer), so the connection actually loops back on itself. But, if


    instead of specifying an IP address to send/receive from, I'd like to specify a handle to another application.
    You might want to look into pipes or some other form of interprocess communication.
    "Optimal decisions, once made, do not need to be changed." - Robert Sedgewick, Algorithms in C

  3. #3
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    There are several solutions including piping as the other member has mentioned. Depending on the context of a communication, file-mapping is one solution. Another solution is COM. A third solution makes use of Windows interprocess messaging system. Window allows a process to send a message to another process and pass it a specific data structure. The data structure could container whatever data you want to pass to that process.

    Kuphryn

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Windows apps verses Console apps
    By nano78 in forum Windows Programming
    Replies: 8
    Last Post: 09-22-2007, 04:41 AM
  2. debugging directx apps
    By confuted in forum C++ Programming
    Replies: 1
    Last Post: 08-16-2003, 09:56 AM
  3. Two apps communicating via a LAN
    By minesweeper in forum Windows Programming
    Replies: 1
    Last Post: 02-02-2003, 06:47 PM
  4. Beginner on Win32 apps, lame question.
    By Templario in forum C Programming
    Replies: 3
    Last Post: 11-06-2002, 08:39 PM
  5. My opinion on visual apps
    By valar_king in forum Windows Programming
    Replies: 15
    Last Post: 10-08-2001, 06:35 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21