TDI

Hello,

When opening \device\tcp using ZwCreateFile() it isn’t quite clear to me what the EaBuffer should contain in order to set-up a TCP connection.

Someone has a brief code example of how to initiate a TCP connection using TDI ?

Thanks
Matteo


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

There is a 1999 article from the OSR “NT Insider” that may help. Fetch TDI.ZIP from this URL:

http://www.osr.com/ntinsider_1999.shtml

If you need to license more complete samples, see:

http://www.pcausa.com/tdisamp/default.htm

Good luck,

Thomas F. Divine

PCAUSA - Toolkits & Resources For Network Software Developers
NDIS Protocol - NDIS Intermediate - TDI Client
http: - http:

----- Original Message -----
From: Matteo Pelati
To: NT Developers Interest List
Sent: Thursday, September 27, 2001 10:46 AM
Subject: [ntdev] TDI

Hello,

When opening \device\tcp using ZwCreateFile() it isn’t quite clear to me what the EaBuffer should contain in order to set-up a TCP connection.

Someone has a brief code example of how to initiate a TCP connection using TDI ?

Thanks
Matteo


You are currently subscribed to ntdev as: xxxxx@pcausa.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com</http:></http:>

I’ve the TDI example but that uses UDP and seems to be little different than TCP.

DDK says:

If a local-node client requires connection-oriented communication with a remote-node peer process, the local-node client must first open a transport address and then open a connection endpoint in its underlying transport. The client makes two calls to ZwCreateFile, first to open an address and, then, a connection endpoint.

I can’t understand what should I open with the two calls using the ZwCreateFile API.

First I should open a transport address, then a connection endpoint. One of the call will open (\device\tcp …i suppose…which one ?) and the other ?

someone can help?

Thanks
Matteo
----- Original Message -----
From: Thomas F. Divine
To: NT Developers Interest List
Sent: Thursday, September 27, 2001 5:19 PM
Subject: [ntdev] Re: TDI

There is a 1999 article from the OSR “NT Insider” that may help. Fetch TDI.ZIP from this URL:

http://www.osr.com/ntinsider_1999.shtml

If you need to license more complete samples, see:

http://www.pcausa.com/tdisamp/default.htm

Good luck,

Thomas F. Divine

PCAUSA - Toolkits & Resources For Network Software Developers
NDIS Protocol - NDIS Intermediate - TDI Client
http: - http:

----- Original Message -----
From: Matteo Pelati
To: NT Developers Interest List
Sent: Thursday, September 27, 2001 10:46 AM
Subject: [ntdev] TDI

Hello,

When opening \device\tcp using ZwCreateFile() it isn’t quite clear to me what the EaBuffer should contain in order to set-up a TCP connection.

Someone has a brief code example of how to initiate a TCP connection using TDI ?

Thanks
Matteo


You are currently subscribed to ntdev as: xxxxx@pcausa.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

You are currently subscribed to ntdev as: xxxxx@dolce.it
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com</http:></http:>

Both must open \Device\Tcp, but the extended attributes are different.

Max

----- Original Message -----
From: Matteo Pelati
To: NT Developers Interest List
Sent: Thursday, September 27, 2001 7:55 PM
Subject: [ntdev] Re: TDI

I’ve the TDI example but that uses UDP and seems to be little different than TCP.

DDK says:

If a local-node client requires connection-oriented communication with a remote-node peer process, the local-node client must first open a transport address and then open a connection endpoint in its underlying transport. The client makes two calls to ZwCreateFile, first to open an address and, then, a connection endpoint.

I can’t understand what should I open with the two calls using the ZwCreateFile API.

First I should open a transport address, then a connection endpoint. One of the call will open (\device\tcp …i suppose…which one ?) and the other ?

someone can help?

Thanks
Matteo
----- Original Message -----
From: Thomas F. Divine
To: NT Developers Interest List
Sent: Thursday, September 27, 2001 5:19 PM
Subject: [ntdev] Re: TDI

There is a 1999 article from the OSR “NT Insider” that may help. Fetch TDI.ZIP from this URL:

http://www.osr.com/ntinsider_1999.shtml

If you need to license more complete samples, see:

http://www.pcausa.com/tdisamp/default.htm

Good luck,

Thomas F. Divine

PCAUSA - Toolkits & Resources For Network Software Developers
NDIS Protocol - NDIS Intermediate - TDI Client
http: - http:

----- Original Message -----
From: Matteo Pelati
To: NT Developers Interest List
Sent: Thursday, September 27, 2001 10:46 AM
Subject: [ntdev] TDI

Hello,

When opening \device\tcp using ZwCreateFile() it isn’t quite clear to me what the EaBuffer should contain in order to set-up a TCP connection.

Someone has a brief code example of how to initiate a TCP connection using TDI ?

Thanks
Matteo


You are currently subscribed to ntdev as: xxxxx@pcausa.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

You are currently subscribed to ntdev as: xxxxx@dolce.it
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

You are currently subscribed to ntdev as: xxxxx@storagecraft.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com</http:></http:>

Both Transport Address and Connection Endpoint both opens use \device\tcp.

Address Object Open would have EA buffer pointing to
FILE_FULL_EA_INFORMATION.
EaName field is intialized with TdiTransportAddress. TdiTransportAddress is
#defined in TDI.H to “TransportAddress”.
EaNameLength is initialized to TDI_TRANSPORT_ADDRESS_LENGTH and this is also
#defined in TDI.H
EaValueLength is initialized to sizeof(TA_IP_ADDRESS). Fill in the port and
ipaddress fields in TA_IP_ADDRESS.

Similarly

Connection Object also would have EA buffer pointing to
FILE_FULL_EA_INFORMATION.
with EaNameField initialized to TdiConnectionContext. This is #defined in
TDI.H
with EaNameLength initialized to TDI_CONNECTION_CONTEXT_LENGTH.
with EaValueLength to a sizeof(PVOID) and you could store the address of
connection context in EaValue.

Hope this helps.
-Srin.

-----Original Message-----
From: Matteo Pelati [mailto:xxxxx@dolce.it]
Sent: Thursday, September 27, 2001 8:56 AM
To: NT Developers Interest List
Subject: [ntdev] Re: TDI

I’ve the TDI example but that uses UDP and seems to be little different than
TCP.

DDK says:

If a local-node client requires connection-oriented communication with a
remote-node peer process, the local-node client must first open a transport
address and then open a connection endpoint in its underlying transport. The
client makes two calls to ZwCreateFile, first to open an address and, then,
a connection endpoint.

I can’t understand what should I open with the two calls using the
ZwCreateFile API.

First I should open a transport address, then a connection endpoint. One of
the call will open ( \device\tcp <file:> …i suppose…which one ?)
and the other ?

someone can help?

Thanks
Matteo

----- Original Message -----
From: Thomas F. mailto:xxxxx Divine
To: NT Developers mailto:xxxxx Interest List
Sent: Thursday, September 27, 2001 5:19 PM
Subject: [ntdev] Re: TDI

There is a 1999 article from the OSR “NT Insider” that may help. Fetch
TDI.ZIP from this URL:

http://www.osr.com/ntinsider_1999.shtml
http:

If you need to license more complete samples, see:

http://www.pcausa.com/tdisamp/default.htm
http:

Good luck,

Thomas F. Divine

PCAUSA - Toolkits & Resources For Network Software Developers
NDIS Protocol - NDIS Intermediate - TDI Client
< http://www.pcausa.com http: > - <
http://www.rawether.net http: >

----- Original Message -----
From: Matteo Pelati mailto:xxxxx
To: NT Developers mailto:xxxxx Interest List
Sent: Thursday, September 27, 2001 10:46 AM
Subject: [ntdev] TDI

Hello,

When opening \device\tcp using ZwCreateFile() it isn’t quite clear to me
what the EaBuffer should contain in order to set-up a TCP connection.

Someone has a brief code example of how to initiate a TCP connection using
TDI ?

Thanks
Matteo


You are currently subscribed to ntdev as: xxxxx@pcausa.com
mailto:xxxxx
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: xxxxx@dolce.it
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: xxxxx@nai.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com</mailto:xxxxx></mailto:xxxxx></mailto:xxxxx></http:></http:></http:></http:></mailto:xxxxx></mailto:xxxxx></file:>