I am glad I am impatient. I have solved my own problem, again. Not very good at c#, I still created a new connection strategy, and made it work. I built it to work around the TCPClient in the Systems.NET.Sockets namespace. It simply makes a connection, and closes it. If an error occurs, you are not connected
It allows you to specifiy the host and the port in the App.config file, along with the rest of the stuff the Offline Application Block puts in there. It was pretty easy, after I stared at the code long enough
E-mail me, if you are interested in the code I used, I will be more than happy to send it to you. It may not be the most beautiful code, but it seems to be working really well. You may want to perform your own tests on it
Thanks
Brad Simon
francesco casonato - 10 May 2004 09:07 GMT
Hi simon,
I'm in trouble with the Offline Application BLock: I'm trying to
understand if I can use it as a start blcok for my objective: develop an
applicaion that detects the state of the connection, and when connected
syncronize some data.
My problem is that I must be able to detect the type of the connection:
in different moments there colud be a wi-fi conneciton, or gsm
connection, or umts, etcetera. SO I think i have to go deeper into
ConnectionDetectionStratgey, to make it able not only to see if there is
or not connection (using winInet API), but also what kind of connection
it can use.
Hope I esplained clearly...
I have read your posts and I would like to see your code, maybe it can
help me to understand what I got to do.
I tried to find your profile in this site, but I wasn't able to find it
out... :) so please could you send me the code at:
il.cesko [at] virgilio.it
Thanks for your help, I will post any future significant work.
Francesco Casonato
PS sorry for my english, I'm just an italian student :)
francesco casonato - 10 May 2004 09:47 GMT
Hi, I would be interested in your code, but I can't find out your
e-mail!!!
Could you send me at il.cesko [at] virgilio.it?
I'm trying to modify the block to make it able to detect differet kind
of connections (gsm, UMTS etc.) and maybe your cod ecan help me.
Thanks and sorry for the OT.
Francesco Casonato