Socket._socket
Let us say your socket is like this:
Global iSocket:TSocket
iSocket = CreateSocket()
local Bytes[2]
Bytes[0] = 65 'Letter A
Bytes[1] = 66 'Letter B
sendto_( iSocket._socket,Bytes,Bytes.length,0,HostIp("127.0.0.1"), SocketWhichYouWantToSendToOnYourLocalComputer )
Should send "AB" to your own computer because you use 127.0.0.1 and then to whatever port you specify.
Let us say your socket is like this:
Global iSocket:TSocket
iSocket = CreateSocket()
local Bytes[2]
Bytes[0] = 65 'Letter A
Bytes[1] = 66 'Letter B
sendto_( iSocket._socket,Bytes,Bytes.length,0,HostIp("127.0.0.1"), SocketWhichYouWantToSendToOnYourLocalComputer )
Should send "AB" to your own computer because you use 127.0.0.1 and then to whatever port you specify.