N
Nathan Kerr
I have been working with KB Article 812404 "HOW TO: Write
Pluggable Protocol to Supprot FTP in Managed Classes by
Using Visual Bassic.NET".
I have modified the code to run on a Pocket PC. In the
OpenControlConnection routine the following lines are
being executed:
m_DataSocket.SetSocketOption
(SocketOptionLevel.Socket, SocketOptionName.SendTimeout,
m_ConnectTimeout)
m_DataSocket.SetSocketOption
(SocketOptionLevel.Socket,
SocketOptionName.ReceiveTimeout, m_DataReceiveTimeout)
The SendTimeout one works. The ReceiveTimeout fails with:
---------------------------------------------------------
An unhandled exception of
type 'System.Net.Sockets.SocketException' occurred in
System.dll
Additional information: An unknown, invalid, or
unsupported option or level was specified in a getsockopt
or setsockopt call
----------------------------------------------------------
I assume this works with regular projects. The
documentation says that ReceiveTimeout is supported by the
compact framework.
Am I running into a bug in the compact framework?
Pluggable Protocol to Supprot FTP in Managed Classes by
Using Visual Bassic.NET".
I have modified the code to run on a Pocket PC. In the
OpenControlConnection routine the following lines are
being executed:
m_DataSocket.SetSocketOption
(SocketOptionLevel.Socket, SocketOptionName.SendTimeout,
m_ConnectTimeout)
m_DataSocket.SetSocketOption
(SocketOptionLevel.Socket,
SocketOptionName.ReceiveTimeout, m_DataReceiveTimeout)
The SendTimeout one works. The ReceiveTimeout fails with:
---------------------------------------------------------
An unhandled exception of
type 'System.Net.Sockets.SocketException' occurred in
System.dll
Additional information: An unknown, invalid, or
unsupported option or level was specified in a getsockopt
or setsockopt call
----------------------------------------------------------
I assume this works with regular projects. The
documentation says that ReceiveTimeout is supported by the
compact framework.
Am I running into a bug in the compact framework?