Take this code,
I know how the code works but how do i know where to find the command "Udp.send" ?? could not find it under sockets. Is it a command?
Strict ' one udp Local Udp:tSocket = CreateUDPSocket() ' to recieve BindSocket (Udp, 49000) ' to send ConnectSocket (Udp, HostIp ("62.12.76.136"), 49000) ' Send some data Local b:Byte [] = [Byte(9), Byte(7), Byte(5), Byte(3), Byte(1)] Udp.send (Varptr b[0], b.length) ' create a loop which waits for some data While True If SocketReadAvail (Udp) ' a bank to store the input Local tmpBank:TBank = CreateBank (1024) ' size of data-package Local length:Int = Udp.recv (BankBuf (tmpBank), tmpBank.size() ) ' print data For Local i:Int = 0 To length - 1 Print tmpBank.PeekByte(i) Next ' exit this loop Exit End If Wend CloseSocket (Udp) End
I know how the code works but how do i know where to find the command "Udp.send" ?? could not find it under sockets. Is it a command?