Solved

NetBIOS programming in NT

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

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
not able to insert into temp table 68 157
Prevent this page from creating additional dialogs. 3 403
substring method in java 1 97
sumHeights  challenge 17 66
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
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.
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.

920 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

12 Experts available now in Live!

Get 1:1 Help Now