Jump to content

TCP problems


Framp
 Share

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:" )
endif
If IsArray ($variable) = 1 Then
     $2send = _ArrayToString ($variable, "|")
else 
     $variable = $2send
endif
;Now i will try to send string... 
dim $ConnectedSocket = -1
$ConnectedSocket = TCPConnect($szIP_Accepted ,$nPORT)
TCPSend($ConnectedSocket,$2send)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;Shit....

 
EndIf
Edited by Framp
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...