Re: SAN sample code



> 2) Even if you'd manage to write own NDIS protocol driver it would take
> you years to make it
> BSD sockets compatible at user level.

Just expose TDI as the upper egde of the protocol and write the WinSock helper
DLL. The simplified version of the TCP/IP WinSock helper is in the DDK
samples - WSHSMPLE.

>Ask Max how long did it take them
> to write BSD sockets
> library for NT kernel.

Several months - this is with debugging and testing.

>And it was for TCP/IP and not for own protocol.

It is the universal TDI client, but have 1 IP-specific file to handle
conversion of sockaddr_in to TA_ADDRESS.

> driver for it) - NDIS protocol (it would be you who would write it) -
> AFD equivalent - User mode DLL

No need in AFD equivalent. If the protocol exposes TDI upper edge - then
existing AFD and MSAFD.DLL will be able to operate it.

You can also expose the proprierary IOCTL upper edge and the user-mode WinSock
provider DLL which will talk to these IOCTLs - but this means you will need to
have things like SO_SNDBUF/RCVBUF/lingering close/listen backlog to be
implemented yourself.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@xxxxxxxxxxxxxxxx
http://www.storagecraft.com


.



Relevant Pages

  • Re: Talking with USB GPS in VB.Net
    ... Your DLL work with USB or only with serial port?. ... There is one "standard" GPS protocol, ... DecodeGPS from my homepage. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: modem to send numeric page?
    ... What you have to implement is the TAP protocol ... (Telocator Alphanumeric Paging protocol -- this is not the TAPI protocol). ... however the supplier of the dll no longer ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Definierte Funktion aus anderem Prozess aufrufen
    ... Für die Darstellung gibts die DLL (Pluggable Protocol) die nichts weiter tut als den Request 1:1 an eine exportierte Funktion aus der exe weiterzuleiten und dort die Daten anzufordern. ... Die DLL mit dem plugaable protocoll wird doch in den selben Prozessraum geladen den die MFC EXE hat. ...
    (microsoft.public.de.vc)
  • XP Attack tracking
    ... update the dll recently): ... Discovery Protocol) ... Ethernet packet details: ... Ethernet II (Packet Length: 175) ...
    (microsoft.public.security)