NetBIOS 与套接字的关系 API

Relation Between NetBIOS and Socket API

来自SuperUser Answer

An application that uses the NetBIOS interface API for network communication can be run on any protocol stack that supports a NetBIOS interface.

我们可以说NetBIOS类似于套接字API吗?

还有SMB和NetBIOS是什么关系?如果NetBIOS类似于socketAPI,是否可以在socketAPI中实现SMB?

如有错误请指正

Can we say that NetBIOS is similar to socket API?

是的,它们都是 API 提供网络访问的。它们提供数据传输和会话管理功能。为什么有两个 API 具有相似功能的原因在很多地方都有描述 - 例如 http://www.mcsecamp.com/MCSE%20Training%20Guide%20TCP%20IP/5a65bdc.htm

Also what is the relation between SMB and NetBIOS?

SMB 是应用层协议。最初的 SMB 实现使用 NetBIOS API。不过SMB不依赖于特定的API,可以通过任何提供类似NetBIOS功能的API实现。

Is it possible to implement SMB in socket API?

是的。例如,Samba 实现了 SMB,它使用套接字 API.