Solved

NetBIOS programming in NT

Posted on 1999-01-14
4
185 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
  • 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

805 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