home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!zaphod.mps.ohio-state.edu!cs.utexas.edu!sun-barr!ames!agate!usenet.ins.cwru.edu!icd.ab.com!iccgcc.decnet.ab.com!schmidtg
- From: schmidtg@iccgcc.decnet.ab.com
- Newsgroups: comp.os.ms-windows.programmer.misc
- Subject: DDEML application question
- Message-ID: <1992Nov11.132435.9315@iccgcc.decnet.ab.com>
- Date: 11 Nov 92 13:24:35 EST
- Lines: 65
-
-
-
- I am trying to develop a communications server using the DDEML. Several
- clients can establish a conversation with the server. The client sends
- a command packet to the server, the server processes it by sending it to
- a device and waits for the reply from the device. When the reply becomes
- available, the server returns it to the client. All packets consist of
- binary data. I want to minimize the overhead in performing this simple
- transaction. The problem that I am having is that the DDEML services do
- not fit well in this model. Although conforming to the DDE standard is
- desirable, it may not be a strict requirement as the communication server
- is internal to the system. However, performance is a big requirement.
-
- So far I have considered:
-
-
- 1) Client POKES command packet to server.
- Server POKES command packet back to client.
-
- Advantage(s);
- * Does exactly what I want.
- Disadvantage(s);
- * Departs from true client/server model (mutual client
- server relationship).
- * Requires establishing twice as many conversations as
- other alternatives.
-
-
- 2) Client POKES command packet to server.
- Server sends a DATA message back.
-
- Advantage(s);
- * Does exactly what I want.
- Disadvantage(s);
- * Does not conform to DDE standard.
-
-
- 3) Client POKES command packet to server.
- Client sends a request message to server.
- Server sends a DATA message back.
-
- Advantage(s);
- * Conforms to DDE standard.
- Disadvantage(s);
- * Requires an extra transaction.
-
-
- 4) Client enters an ADVISE loop
- Client POKES command packet to server.
- Server returns data to client by an INFORM to the client.
-
- Advantage(s);
- * Conforms to DDE standard.
- Disadvantage(s);
- * An unnatural way of modeling the problem.
-
-
- As I have very limited experience with DDE, can someone suggest a reasonable
- way to implement this?
-
- Thanks in advance,
-
- -- Greg Schmidt schmidtg@iccgcc.decnet.ab.com
-
- --
-