Solved

NetBIOS programming in NT

Posted on 1999-01-14
4
190 Views
Last Modified: 2013-11-20
My first attempt at both NetBios programming and C++, so forgive any implied ignorance.  

I'm using Alok Sinha's Network Programming in Windows NT as a guide.

I've written a small application using MVC++ 5.0 and linked it as a DLL.  I've attached the DLL to a Paradox application.  The purpose of the application is to act as a server and collect status packets (using NetBios Listen/Call/Receive) from several PC clients.  The server is running NT Workstation 4.0, and the clients are MS-DOS 6.22.

I have the server application running, and accepting connections and receiving data from a "client" running in a DOS window on the same NT Workstation.  My "client" issues an NCB.CALL and is successfully connected to the server application.  The "client" issues an NCB.SEND and successfully transmits a data packet to the server application.

Now for my troubles...when I run the "client" application on a DOS machine hooked up to my LAN, I can not get a connection established.  My server has issued the NCB.LISTEN command to wait for a NCB.CALL, but the "client" times out without finding the server name.  I'm running the identical "client" application on both the DOS window under NT and on the DOS machine.

I know my NT box has NetBEUI successfully installed, because I can connect to it from my DOS machine running MS Workgroup Add-On for DOS.  I can also successfully run very similar applications between two DOS boxes.

So my question is, what have I forgotton to do in my Visual C++ library that keeps me from being able to create a NetBIOS session between a DOS machine and my application?  I'm anxious to get past this hurdle...any help would be greatly appreciated.
0
Comment
Question by:agiusti
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 3

Expert Comment

by:stefanr
ID: 1327698
I have only used NetBios on NT, but the main problem I faced was that I could not really know what LANA number to use without testing each one until a connection succeeded between the two machines. So either do I send data on every LANA number available (one LANA number is associated with a single network card and a single protocol), or test which one that is connected to the other computer.
0
 

Author Comment

by:agiusti
ID: 1327699
Actually, that comment helped me find the answer.  I didn't realize that there were seperate LANA numbers associated with each protocol on a given card.  My NT box has only one network card, so I assumed the LANA number would be zero.  When you mentioned the multiple protocol issues, I found that a LANA of 1 matched up with the correct protocol for my card.  Thanks!
0
 
LVL 3

Accepted Solution

by:
stefanr earned 200 total points
ID: 1327700
I assume that it means that I should lock the question?
0
 
LVL 3

Expert Comment

by:stefanr
ID: 1327701
Is there anybody out there?
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

717 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