As according to its function, event we assisting monitoring event on winsock control. which 7 event on winsock control.
Close
This event happened at computer server close conection
syntax:
object_close()
ex:
winsock1_close()
Connect
this event happened at your computer succes conected with computer target.
Syntax:
object.connect()
ex:
winsock1_connect()
connectionRequest
This event happened at remote computer confirming for opened a new connection on your compute. can be logic as action Knocking.
Syntax:
object_connectionRequest(requestID as long)
ex:
winsock1_connectionRequest(requestID as long)
DataArrival
this event happened at your computer receive data from other computer.
Syntax:
object_dataArrival(bytesTotal as long)
ex:
winsock1_dataArrival(bytesTotal as long)
Error
This event happened at happened error on winsock control
Syntax:
object_error(number as integer,description as string, scode as long,Sorce as string, helpFile as string, helpContext as string, cancelDisplay as boolean)
ex:
winsock1_error(number as integer,description as string, scode as long,Sorce as string, helpFile as string, helpContext as string, cancelDisplay as boolean)
SendComplete
This event happened at data what your send with SendData method have complete received by target computer
syntax:
object_SendComplete
ex:
winsock1_SendComplete
SendProgress
This event happened at send data with method SendData on progress of target computer;
Syntax:
object_SendProgress(bytetsSent as long, bytes remaining as long)
ex:
Winsock1_SendProgress(bytetsSent as long, bytes remaining as long)
7 Event Winsock Control
Diposting oleh Admin | Monday, June 30, 2008 | Vb tips and trick, Winsock Vb | 0 komentar »
Subscribe to:
Post Comments (Atom)
0 komentar
Post a Comment