Solved

NetBIOS programming in NT

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

746 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

9 Experts available now in Live!

Get 1:1 Help Now