Jump to content

Recommended Posts

Posted

how send file between client and server

if code for client

open = FileOpen($filepp, 16)

While 1
    $Read = FileRead($open, 1024)
    If @error Then ExitLoop
    TCPSend($ConnectedSocket, $Read)
WEnd

if code for server

While 1
        $rev = TCPRecv($ConnectedSocket, $nPORT)
        If @error Then ExitLoop
        FileWrite($open,$rev)
    WEnd

the server still loop the While 1

how i can fixed that

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
×
×
  • Create New...