Solved

NetBIOS programming in NT

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Windows Drag & Drop Location 2 116
Named range not carried over 10 70
tripleUp challenge 7 96
canBalance challenge 34 109
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: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

737 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