Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mailslot Error Codes 1

Status
Not open for further replies.

sweep123

Technical User
Joined
May 1, 2003
Messages
185
Location
GB
Having got my Client/Server up and running on the same PC, I now find that I get Error 67 when the Client trys to connect to the Server from a remote PC.

The name the client tries to connect to is " \\mac56623\MyMailSlot", where mac56623 is the name of the Server PC on the LAN (Intranet).

The Server creates the Mailslot as "\\.\MyMailSlot"

I have searched for meanful list of error codes, but no joy

Note I get the same error when the Client tries to connect to the Server (both on the same PC) by calling: " \\mac56623\MyMailSlot".

Any idears?
 
You say <The Server creates the Mailslot as &quot;\\.\MyMailSlot&quot;>

Is it your app on the server that creates this folder? If it is, then the folder is created in the current directory, which is not necessarily the root of the share.


________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'People who live in windowed environments shouldn't cast pointers.'
 
johnwm, mailslots are not created on disk; they reside in memory as they are pseudofiles.

sweep123, a legitimate mailslot name must stick to the following convention:

\\.\mailslot\[path]name
 
OK on the server I create &quot;\\.\mailslot\C:\EGI_SLOT&quot;, using CreateMailslot.

On the Client I use CreatFile with &quot;\\mac56623\mailslot\C:\EGI_SLOT&quot; where mac56623 is the name of the Server PC.

It works, but the client can send data when the server is not running, are they any means to check that the server is up and running and vice versa?
 
Use the OPEN_EXISTING flag as the dwCreationDisposition parameter in the CreateFile call on the client
 
Thanks strongm - I had my numbnuts hat on last night!
[smile]


________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'People who live in windowed environments shouldn't cast pointers.'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top