TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: DANIAL GIBSON
from: TIKA CARR
date: 1997-04-11 10:07:00
subject: win95 mailslots

Danial Gibson was saying to All on 04-07-97  16:53:
 DG> I've got two computers networked together in win95. I decided to make
 DG> a program to chat between the computers. So I read the win32 sdk and
 DG> thought, gee, pipes look good. So I did that for two hours wondering
 DG> why it wouldn't work. Found out it's cause pipes are only in nt, not
 DG> 95. So, I have to use mailslots. So I did that. Fine it works. Sorta.
 DG> Let's name the two computers. Say 486 and 686 since that's what they
 DG> are. Now, I send a message from 486 to a mailslot on 686 and here's the
 DG> problem. 686 gets the message, but it gets it twice. 486 only sends it
 DG> once. But 686 gets it twice for some reason. So my questions are :
Two things come to mind here:
1. The 486 may be running on half-duplex while the 686 on Full Duplex.
   Check your network settings.
2. Remember that a 486 is not a "true 32-bit" machine. I was told that
   only a Pentium (ie. 586 and 686) have true 32-bit data transfers.
For #2, you have to realize that the data being send from the 486 is
16 bits long anyway because 486s are all 16-bit motherboards. Your 686
recieves/sends 32 bits. So the answer here is to do a bit of
bit-chunking (I call it bit-banging, really :)
On the 686 end:
1. For incoming transmissions to the 686, have the program get only
   the first 16 bits from the mailslot. Disregard the rest.
2. For outgoing transmissions from the 686, have it send only 16 bits
   at a time.
One the 486 end:
1. For incoming, have it wait for TWO transmissions, then have the
   program combine and use the two 16-bit chunks for the total data.
2. For outgoing, you really can't do anything. That's where #1 above
   for the 686 will have to be written to handle the 16-bit incoming
   transmissions.
Tika
             Phantom's Gate - Home of the Hacker's Haven
     http://www.frontiernet.net/~phantom7 * phantom7@frontiernet.net
... "Self-explanatory" is technospeak for"Incomprehensible & undocumented"
___ Blue Wave/DOS v2.30
--- QScan/PCB v1.17b / 01-0406
---------------
* Origin: Knight Moves - Rochester,NY 716-865-2106 (1:2613/313)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.