j ai ecrit un petit script qui ecoute les packet TCP ,voila le code :
Code : Tout sélectionner
$IP=@IPAddress1
TCPStartup()
global $listen
$listen=TCPListen($IP,5001)
If @error Then
MsgBox(0,"","error")
EndIf
while 1
_recive($listen)
WEnd
Func _recive($listning)
Do
$accepte=TCPAccept($listning)
Until $accepte<>-1
MsgBox(0,"n","good")
While 1
Do
$rcv = TCPRecv($accepte,30000)
Until $rcv <>-1 And $rcv<>""
Select
Case $rcv="cm"
MsgBox(0,"","cm")
Case Else
MsgBox(0,"","else")
EndSelect
WEnd
EndFunc

