RecvSocket = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP) StructSize = 16 RecvAddr4.sin_family = AF_INET RecvAddr4.sin_port = htons(aui_port) iResult = bind(RecvSocket, RecvAddr4, StructSize) do while true bytesrecvd = recvfrom(RecvSocket, recvbuf, & bufsize, 0, RecvAddr4, StructSize) if recvbuf = "stop" then exit else ' do something with the data end if loop closesocket(RecvSocket)
if recvbuf = "stop" then
if recvbuf == "stop" then
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)