Hi! my project is attached. I have a very weird problem with Winsock!
I made 1 program with 2 forms. 1st form is the client, 2nd form is the server.
Server send snapshot for client. So, client display either Single Picture. Or stream of pictures (to simulate video capturing).
when open 1st window (client) in a computer, and 2nd window(server) in another computer... it connect and display picture without problem just once!! when press "Capture" button again it may reponse or Winsock may loss connection. and when Check "Loop"=> means for stream of pictures.. Winsock loss connection immediatly!
I don't know where is the problem exactly! Please help
The code attached. Winsock ocx is attached.. see it in the release folder
I'm VB6 programmer, I don't know much in VB.Net, I don't know how to deal with Sockets classes, and unfortunately don't have the time to learn them.
So, if anybody can help me with this, please. If using socket classes with solve the problem, please edit the code so I can see how to do it for the other projects.
You can look for managed DLL's that help handle Sockets. But you'll want to learn Sockets for yourself because they were designed to be flexible and lower level in terms of usability than a Winsock control.
Sockets will give you more control than Winsock could.
formlesstree4... are you telling that the problem is from Winsock dll not from my code, or you just giving an advice?! did you download the code and see the problem?!
I'm too hung over to find out what's wrong with your code, but that's basically VB6 code disguised as a .net application. My advice is to get familiar with the managed sockets class, here's a link to a thread with a full source example of one. http://www.vbforums.com/showthread.php?t=502795
Thank's Dark Anima. The problem I'm working on a huge project. and have only this problem, in that part of the program. So, I can't change the whole progject from the beggining. Or until edit it... because it is very big and I don't have time to loss on editing.
any way thank's alot partner. and please, if any one figure out whats the problem with my code, replay on this thread, I would be grateful.
Is there any ready class that depends on .Net.Sockets classes, and at the same time its have ready methods and events like Winsock?
Is there a better version of Winsock DLL for VB.Net 2005?