07-19-2006 06:57 AM
07-20-2006 12:44 PM - edited 07-20-2006 12:44 PM
Hello,
I recognize that your issue is urgent, so I'll be as brief as possible. Unfortunatly you cannot do a lot of low-level
operations with the networking
Thanks for posting to the forums – I apologize that our
networking
Message Edited by Travis M. on 07-20-2006 12:46 PM
07-23-2006 01:03 AM
Thanks fo rthe quick reply!
I am building a simulator the sends specific UDP messages. the receiver of those messages has to have the DF flag marked in order to accept those messages. does anyone know how can I access the Windows IP socket in order to enforce this bit to be 1? I tried the registry and found an option to change the TTL value but not this bit. do you have an idea of what you suggested about "external libraries which implement the low level functionality".
Thanks
Yair
07-23-2006 08:36 AM
If we can figure out how this program does it. Still looking.
07-23-2006 12:02 PM
07-23-2006 02:40 PM - edited 07-23-2006 02:40 PM
And probably the most LabVIEW only solution: \vi.lib\Utility\tcp.llb\UDP Get Raw Net Object.vi
@unclebump wrote:Maybe one more option.
int setsockopt(
SOCKET s,
int level,
int optname,
const char* optval,
int optlen
);
with the option IP_DONTFRAGMENT, BUT!!!!!
MSDN states: Indicates that data should not be fragmented regardless of the
local MTU. Valid only for message oriented protocols. All Microsoft providers
silently ignore this option.
So this might be a dead end.
Rolf Kalbermatter
Message Edited by rolfk on 07-23-2006 09:41 PM
07-24-2006 01:11 AM
07-24-2006 03:24 PM - edited 07-24-2006 03:24 PM
It does work, but you need to make sure you use the UDP Get Raw Net Object.vi not the TCP Get Raw Net Object.vi. Those refnums are not wire compatible. And you will need to understand a little C as you will go to use the Call Libraray Node to call winsock functions directly.
@yairn wrote:Hi rolf,can you give me an example how to use this VI and winsock function. do I need to wire the Connection ID of this vi to the UDP open connection out? (it does not work). how can i insert the winsock function call in my labview program?what should be the parameters in this function?ThanksYair
Message Edited by rolfk on 07-24-2006 10:25 PM
07-25-2006 12:41 AM
Hi Rolf,
Thanks!!!! I managed to do it and it works great.
Yair
07-25-2006 11:13 AM
Good find uncle and rolf -- thanks for your contribution!
Yair - if you appreciate their help, make sure you give them a 5-star message
rating 🙂
Have a great week everybody-