> Question: can I simply change my code so that the sending UDP socket
> also does the receiving for his connection?

No problem. Make you socket listening and call SendTo to send any data to 
the given IP/Port. At first glance, a single socket is needed for everything 
provided each device send to the same listening UDP port.

> Our IT dept. now told me that using fixed IPs is a no no (I agree ;-))

I don't see any relation between using fixed IPs and your problem. Could you 
elaborate ?

Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
--
[EMAIL PROTECTED]
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be


----- Original Message ----- 
From: "Markus Humm" <[EMAIL PROTECTED]>
To: "ICS support mailing" <twsocket@elists.org>
Sent: Friday, December 21, 2007 3:27 PM
Subject: [twsocket] Question about changing some UDP application


> Hello,
>
> one of my application uses UDP to communicate with some hardware.
> UDP is necessary in this case. It is possible to have several
> of those devices connected to the same PC, so each has its own address.
>
> All of this hardware communication has been put into a DLL for
> the sake of reuse and encapsulation as it also contains other
> communication methods. (it abstracts them)
>
> Now my problem is: I wrote this when I hadn't yet completely understood
> how thing work and it's now like this: for each such UDP device one
> sending socket is used, but only one receiving socket for all those
> connections is used and those devices are set up so that they send their
> answers to that fix IP/port of this receiving socket. Our IT dept. now
> told me that using fixed IPs is a no no (I agree ;-)) so I have to
> change it sooner than later.
>
> Question: can I simply change my code so that the sending UDP socket
> also does the receiving for his connection? (I must check first whether
> this device supports sending the answers back to that UDP socket
> (IP/port) where it got his request from.
>
> Greetings
>
> Markus
> -- 
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be 

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to