Multithread Socket (Thread per Socket)not Complete

Iniciado por ntaryl, 3 Febrero 2012, 20:32 PM

0 Miembros y 2 Visitantes están viendo este tema.

ntaryl

Good evening
First want to say a Big Thanks to my friend Rookie Learn to Fly for the amazng example with ThreadPool and for the Help on QQ .Yukun for the beautiful multithread Console example .


My next Step is to Create Multithread with Forms and use Events .Like Example with Winsocks Array
Thanks for the time

http://www.mediafire.com/?h3krt1mfrbf02c2
P.s sorry for my English


m0rf

Si todos fuéramos igual de inteligentes no existiría la mediocridad porque no podríamos apreciarla. Aprecias la mediocridad?

ntaryl


m0rf

Si todos fuéramos igual de inteligentes no existiría la mediocridad porque no podríamos apreciarla. Aprecias la mediocridad?

Speeding

Cita de: m0rf en  9 Febrero 2012, 17:20 PM
Search on google.

You're asking him to use paste bin. So your answer is really stupid and not polite.
a

79137913

HELLO!!!

Cita de: Speeding en  9 Febrero 2012, 18:28 PM
You're asking him to use paste bin. So your answer is really stupid and not polite.

+1




I really do not understand this to much...
The regular sockets (winsock and socketmaster) already are multithread i think.

For example with 2 winsocks i have this code:

Private sub Winsock1 data arrival()
Do
doevents
Loop
end sub
Private sub winsock2 data arrival()
Debug.print "a"
end sub


If i send information to the first socket the program will enter in an endless loop but if while the program its in that loop i send information to socket2 it will print "a" in the debug window.

it's like reinvent the wheel.

Plz correct me if im wrong.

P.D: I don't read the code, i only have tested the software.

THANKS FOR READING!!!
"Como no se puede igualar a Dios, ya he decidido que hacer, ¡SUPERARLO!"
"La peor de las ignorancias es no saber corregirlas"

79137913                          *Shadow Scouts Team*

ntaryl

Good afternoon 
My friend  79137913 regural in vb 6.0 the socket work one by one Like (First Send after Second  after third etc)
In my Example  u can see the Sockets work at the same time .
all the sockets send at the same moment 
Hope  explain a bit 



79137913

HELLO!!!

Oh! i see this socket sends and recive with multithread, and the regular socket only recive with multithread.

Cool but! (i allways have a but in my pocket XD)
with the regular sockets with this code:


Public sub SendInformation()
Winsock1.senddata 5mbDatastring
Winsock2.senddata 5mbDataString
End Sub


The first socket will start the sending process and the code will go to the next instruction winsock2.senddata 5mbDataString when the second socket starts the process the winsock1 and 2 would be sending at the same time.

What do you think?

THANKS FOR READING!!!
"Como no se puede igualar a Dios, ya he decidido que hacer, ¡SUPERARLO!"
"La peor de las ignorancias es no saber corregirlas"

79137913                          *Shadow Scouts Team*

BlackZeroX

Note: The multi thread are unstable in vb6

Dulces Lunas!¡.
The Dark Shadow is my passion.