I have some problem with winsock sending.
I have 1 Server and too many clients. I made ocx for clients
First Server running open port and listen, then clients connect and request images. Next Server send all images to clients. It works, in frirst time.
Then, Server update some (new) images, and need to send all (new and old) to clients, it cannot send. I did not know why? so I put break point in the function for sending, it show me all images for sending and send all complete but when I took break point off and let the problem run automatic, it did not work. I tried again with msgbox for break in the this functions, it alrert message and I click enter one by one, it works and send all image complete but when I took it off and let it run again automatic, it did not work. :cry:
In sending function, because of I send images so I use timer for help because image it is very big file ( 30-150 kb) and it need loop for sending image by image and then after finish ,loop for sending another one.
I am not sure, the problem is timer quickly or not but why first time for connect request, it works ? I tried to close connection from clients (but in server still listen , not stop) and open new connection from clients again. It works and send all images successfull.
Does anyone help me for solve this problem ?
