Jump to content
Sign in to follow this  
Clever1mba

TCP AND GUI

Recommended Posts

hello every one

last time post few question about tcp but not get proper answer

i just want to know how to get and display tcp connect tcp receive tcp send status at separate windows

here is my code

$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

EndIf

Edited by asimzameer

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...