Clever1mba Posted June 3, 2005 Share Posted June 3, 2005 (edited) hello every one i have little problem with tcp mode i want to display my tcp connection activities oncmd here is my code i want to make sure it work properly or not on cmd any idea help a lot $g_IP = "mx4.mail.yahoo.com" TCPStartup() $hSocket = TCPConnect(TCPNameToIP($g_IP), 25) If $hSocket <> -1 Then Sleep(100) $sData = TCPRecv($hSocket, 1024) If StringLeft($sData, 3) = "220" Then Sleep(100) $sData = "HELO ASIM" EndIf EndIfThanks ! Edited June 4, 2005 by asimzameer Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now