Re: [twsocket] Force UDP source port when sending

2008-06-28 Thread Dod
Hello Angus, Thank you, so I cannot force the port to same as listening but if I do it within the OnDataAvailable then the .SendTo will automatically re-use the same socket to send data back using same src port whenever this port is actually used for listening by the server ? So this also

Re: [twsocket] Force UDP source port when sending

2008-06-28 Thread Angus Robertson - Magenta Systems Ltd
You don't need to send your reply from the event, just make Src a public variable associated with this specific socket, and use SendTo later. I think your issue is trying to set a property, rather than actually sending a packet. Angus Original Message *Subject:* Re:

Re: [twsocket] Force UDP source port when sending

2008-06-28 Thread Dod
Hello Angus, Settings the property do not produce the error, it's on .Connect/.Send that exception raise. Regards. ARMSL You don't need to send your reply from the event, just make Src a public ARMSL variable associated with this specific socket, and use SendTo later. I ARMSL think your issue