rindeal Posted June 6, 2016 Posted June 6, 2016 Hello, I have a function which looks like this: func callback($buf_p, $len) TCPSend($iSocket, ...) Return 1 EndFunc buf_p - pointer to a binary buffer len - length of the data How is it possible to send the data under the pointer via TCPSend()?
rindeal Posted June 6, 2016 Author Posted June 6, 2016 So this is what I've got so far Func callback($ptrBuf, $iLen) Local $tBuf = DllStructCreate("byte [" & $iLen & "]", $ptrBuf) Local $data = DllStructGetData($tBuf, 1) TCPSend($iSocket, $data) Return 1 EndFunc
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