EldoS
MsgConnect home / Documentation / Messenger.PostMessage method
Navigation
Web site
Support
Table Of Contents

Filter: C++  Pascal  ActiveX  C#  VB.NET  Java SE  Java ME  Palm  DLL 


Messenger.PostMessage

Messenger     See also    


Sends a message to the recipient without waiting for result.

Declaration

[C++]
    void PostMessage(char* Destination, MCMessage* Message, MCMessageCredentials* Credentials);

[Pascal]
    procedure PostMessage( Destination : string; var Message : TMCMessage; Credentials : PMCMessageCredentials);

[VB6]
    Sub PostMessage(Destination As String, Message As IMCXMessage, Credentials As MCXMessageCredentials)

[ActiveX]
    HRESULT _stdcall PostMessage([in] BSTR Destination, [in] IMCXMessage * Message, [in] IMCXMessageCredentials * Credentials);

[C#]
    public void PostMessage(string Destination, MCMessage Message, MCMessageCredentials Ñredentials);

[VB.NET]
    Public Sub PostMessage(ByVal Destination As String, ByVal Message As MCMessage, ByVal Credentials As MCMessageCredentials)

[Java]
    public void postMessage(String destination, MCMessage Message, MCMessageCredentials credentials);

[Java ME]
    public synchronized void postMessage(String destination, MCMessage Message, MCMessageCredentials credentials);

[Palm]
    void PostMessage(char* Destination, MCMessage* Message, MCMessageCredentials* Credentials);

[DLL]
    long __stdcall MCMessengerPostMessage(HMCMessenger h, char* Destination, MCMessage* Message, MCMessageCredentials* Credentials, bool* res);

Parameters

  • [DLL]h - handle to the Messenger object that was returned by Create method

  • Destination - The address of the message recipient. See more here
  • Message - The message to be sent. See more here
  • Credentials - (optional) Credentials to be set for the message. Can be set to null (nil) if credentials system is not used. See more here

Return value

[DLL]
    If there was no transport found MCE_NOTRANSPORT is returned, otherwise MC_OK is returned.

Description

     This method sends a message for which reply is not needed. Destination Messenger doesn't send any reply to sender.
For information about error and timeout handling see Error and Timeout Handling topic.

See also:     Queue class     MCMessage structure     MessageCredentials structure     Addressing     SendMessage     SendMessageTimeout     SendMessageCallback    

 
Contact Us | Subscribe | Terms of Use | Trademarks | Privacy Statement
Copyright (c) 1998-2005, EldoS Corporation