Trying to upgrade a VB6 winsock function to vb.net sockets. The sdk mentions
a TransmitFile function, but I find no usage sample for C# or VB. Must be an
easier way than Seek and Put (not in .net), and getting chunks. Have you any
pointers, besides trail and error, something like the WinTalk sample in the
sdk ?
Thanks
Feroze [MSFT] - 07 Jan 2004 05:03 GMT
TransmitFile is not supported in the current shipping viersion of the
runtime. You can use TcpClient/UdpClient or Socket class in
System.Net.Sockets namespace and accomplish the same.
feroze

Signature
Remove "user" from the email address to reply to the author.
This posting is provided "AS IS" with no warranties, and confers no rights
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
> Trying to upgrade a VB6 winsock function to vb.net sockets. The sdk mentions
> a TransmitFile function, but I find no usage sample for C# or VB. Must be an
[quoted text clipped - 3 lines]
>
> Thanks
Chad Z. Hower aka Kudzu - 21 Jan 2004 12:14 GMT
> Trying to upgrade a VB6 winsock function to vb.net sockets. The sdk
> mentions a TransmitFile function, but I find no usage sample for C# or
> VB. Must be an easier way than Seek and Put (not in .net), and getting
> chunks. Have you any pointers, besides trail and error, something like
> the WinTalk sample in the sdk ?
http://www.indyproject.org/indy.html
Its free and open source. You can just use its WriteFile function, or open a
stream if you want and pass the stream to the Write method.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
ELKNews - Get your free copy at http://www.atozedsoftware.com