Solved

DOS IPX Header different than NLM IPX

Posted on 1997-09-03
5
354 Views
Last Modified: 2012-06-21
I am trying to write a program with a DOS client and a Netware server NLM. The problem is that the DOS IPX and ECB headers are totally different than that of the Netware NLM IPX and ECB headers. Should I use the DOS headers with the NLM? Will this crash the server or will the Netware automatically add the rest of the DOS packet to form a Netware packet?
0
Comment
Question by:Claude050897
  • 3
  • 2
5 Comments
 

Accepted Solution

by:
bkc earned 50 total points
ID: 1590588
The IPX packet format is the same across all platforms. The ECB structure is platform dependant.

You can not use the DOS ECB header in an NLM because pointer formats are different and the completion routine types are different.

I suggest you examine using TLI on the NLM side. We have implemented several SPX/IPX based DOS TSR's that communicate with
NLMs based on TLI for IPX and SPX.

Although I dislike TLI for TCP apps, for IPX and SPX its a better way to go as it allows you to treat IPX and SPX connections as
data streams.

Also, you must use TLI to take advantage of SPX II in an NLM.

Check out the developer NLM examples for server-side TLI IPX and
SPX programs.

0
 

Author Comment

by:Claude050897
ID: 1590589
Thanks, this will help very much. I have compiled and tested the SDK example for tli /dev/nspx but I get connection failed each time. Do you perhaps know how RSPX work with RConsole and if there is a SDK available for RSPX?
0
 

Expert Comment

by:bkc
ID: 1590590
Are you trying to write on own rconsole?

The tli /dev/nspx examples require that you have spxs.nlm loaded
(and tli.nlm, streams.nlm), do you have these loaded?

If you have Netware 3.12 without patches, look for strtli4.exe patch (or a later one) that updates streams, spxs and tli.

Also, you can't run the client-side tli example without also having the server-side example running, otherwise there isn't an
spx socket listening for a connection.


0
 

Author Comment

by:Claude050897
ID: 1590591
I actually just got it going. The problem was that the address required to connect should be the INTERNAL node and network address of the server and not that of the actual network adpater which can be found with the CONFIG command. And no, I'm not trying to write my own rconsole, but just thought that RSPX might work the same as SPXS and IPXS. So all of this means that I now have to have a DOS client also working with TLI and that has to know the internal node and network address of the server it want to communicate with...
0
 

Expert Comment

by:bkc
ID: 1590592
Your DOS client can use standard old IPX and ECB stuff, that's what we use. TLI is too big on DOS, in my opinion.

Its true that the server-side endpoint address will be based on the internal network number of your server.

If you use AdvertiseService() in your NLM, your DOS program can use SAP services to obtain the correct IPX address, you don't have to hard code it.

You can obtain a block of SAP codes and known sockets from Novell for use by your application. just request this through devsup. This way you can be assured you won't be colliding with any other
application. Using a fixed SAP type, and optionally a fixed SPX/IPX socket number makes it much easier for your DOS program
to locate the IPX address of the server via the Sap functions.

We use QueryServices on the DOS side to locate the NLM's IPX
address and socket number based on a pre-determined SAP type.

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
NDS object move 10 911
SLP Server crash 2 826
Sync Widnows 2008 Active Directory with eDirectory 5 1,435
netware 5.1 license keys 15 1,439
In the hope of saving someone else's sanity... About a year ago we bought a Cisco 1921 router with two ADSL/VDSL EHWIC cards to load balance local network traffic over the two broadband lines we have, but we couldn't get the routing to work consi…
Fine Tune your automatic Updates for Ubuntu / Debian
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now