I don't use streams for UDP so I can't help you with that, if that is really what you want, but I guess you simply want to send data, in which this might be your solution. With UDP I send packages, the opposite with TCP, where I split the stream up into packages.
Here is the command for sending UDP with the core blitzmax commands (nothing to do with TNet, except this is what TNet uses):
sendto_( Socket._socket, Bytes:Byte Ptr, Byte_length, flags, Dest_IP, Dest_Port )
Socket: The socket you want to use, with UDP you can use one socket for ALL your messages on one port. _socket is the field in the Socket type that the sendto_ function wants.
Bytes: a Byte Ptr to the first byte of the data you want to send.
Byte_Length: The length of the data to send.
flags: If you don't know this, don't use it.
Dest_IP: The ip in int form of the receiver of your message
Dest_Port: The port on the receiving computer you want to send to.
You will save a lot of work if you use TNet, and in the next version you will be able to use blitz sockets combined with TNet. SocketDataSendTo( Socket:TSocket, Data$, Dest_IP, Dest_Port).
Here is the command for sending UDP with the core blitzmax commands (nothing to do with TNet, except this is what TNet uses):
sendto_( Socket._socket, Bytes:Byte Ptr, Byte_length, flags, Dest_IP, Dest_Port )
Socket: The socket you want to use, with UDP you can use one socket for ALL your messages on one port. _socket is the field in the Socket type that the sendto_ function wants.
Bytes: a Byte Ptr to the first byte of the data you want to send.
Byte_Length: The length of the data to send.
flags: If you don't know this, don't use it.
Dest_IP: The ip in int form of the receiver of your message
Dest_Port: The port on the receiving computer you want to send to.
You will save a lot of work if you use TNet, and in the next version you will be able to use blitz sockets combined with TNet. SocketDataSendTo( Socket:TSocket, Data$, Dest_IP, Dest_Port).