Jump to content
Sign in to follow this  

TCP problems

Recommended Posts


Hi, I've a problem developing a TCP code...

I can't send back a string from server to client... :whistle:

Anybody know how can i solve my problem???

My server code :

While 1
$recv = TCPRecv( $ConnectedSocket,2048 )
if $recv = "0" then
$variable = Winlist ()
elseif $recv = "1" then
$variable = DriveGetType ( "D:" )
If IsArray ($variable) = 1 Then
     $2send = _ArrayToString ($variable, "|")
     $variable = $2send
;Now i will try to send string... 
dim $ConnectedSocket = -1
$ConnectedSocket = TCPConnect($szIP_Accepted ,$nPORT)

Edited by Framp

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.