Novell is now a part of Micro Focus

I need send a message to a network...

Articles and Tips: qna

01 Feb 2002


Q.

I need send a message to a network station using a connection number that is greater than 256 (long) from DOS. I found the necessary function, NWSendBroadcastMessage, but I can't use this function in my program, since I must not use a standard C compiler for this project.

Also, I can't use standard OBJs, LIBs, and DLLs. Is there a way to send a message calling a NetWare Core Protocol directly?

A.

I have had to solve a similar task when we were developing a program in Clipper running in the 16-bit protected mode. None of the standard libraries could be used, so I developed a module in C to send NCP requests to the server.

One level up was a module that assembled an NCP request to send a broadcast message and called the first module. One level up was a "dummy" function to translate Clipper parameters to C. There were a few more levels, but they probably go well beyond your question.

It still works well, under all Windows flavors and NetWare clients. My work here is heavily based on the NETX and VLM interfaces. You can find complete documentation for NETX and VLM NetWare assembler interfaces at: http://developer.novell.com/support/sample/tids/ASMSDK/ASMSDK.HTM

NetWare Core Protocols manual can be found at: http://developer.novell.com/ndk/ncp.htm

It describes NCP requests your program should use. If you have more questions on this subject, post them in novell.devsup.dosasm newsgroup. I'd also recommend you download and read all messages in that newsgroup for answers to similar questions and additional examples.

* Originally published in Novell AppNotes


Disclaimer

The origin of this information may be internal or external to Novell. While Novell makes all reasonable efforts to verify this information, Novell does not make explicit or implied claims to its validity.

© Copyright Micro Focus or one of its affiliates