|  | # Intrafoundation Software ### Home Software Forums News FAQ Galleries Web Design About Us Contact Us #### > > > |
# UDPClient & BIND - Forums You may post here on any subjects related to this site or the software therein. (Most everything on this site is tied into the forums so that you may leave or post comments about it.) List all New Post
## Forums UDPClient & BIND `Date: May 29 2002 07:44 PM` Hi. I downloaded your UDP client and everything worked fine except for one small thing... I couldn't BIND a port. I'm making a ASP script that communicates with a server that sends data back on a specific port and there for I need to bind that port. But, that doesn't seem to be possible with your UDP client. What i'd like to be able to do is something like: <% Dim port Dim ip dim obj dim c ip = "111.111.111.111" port = "1122" set obj = server.CreateObject("Intrafoundation.UDPClient") c = obj.Open( ip , port) c = obj.bind = "1111" %> If you could add this to your COM object I'd be SO happy. -------------------------- Email: zilver@redbull.nu #### mailto:zilver@redbull.nu Delete Edit Reply
## Forums RE:UDPClient & BIND `Date: May 29 2002 07:46 PM` Ohh.. my code got cutoff. What I'd like to do be able to do is something like: dim ip dim port dim obj dim c ip = "the_ip" port = "the_port" set obj = server.CreateObject("Intrafoundation.UDPClient") c = obj.Open( ip , port) c = obj.bind = "1111" Delete Edit Reply
## Forums RE:UDPClient & BIND `Date: May 30 2002 02:23 PM` Well... the COM is designed to be a "client". I think what you're wanting to do essentially is to set it up as a "server". That is you're wanting it to persist after the asp page and continue collecting data and respondng to it? The way it's setup now you can only send/recv so long as the asp script is running. You can set up a loop and bump up the timeouts, etc but when you get to the obj.close at the end of the page to connection is terminated. Have I missed your point? --min Delete Edit Reply
## Forums RE:UDPClient & BIND `Date: May 30 2002 02:27 PM` btw, I might point out that when you do an "Open" it actually DOES do a berkley class bind to that ip:port. Snipped from the udp class itself: int nbind = bind(sock, (struct sockaddr*)&locala;, sizeof(locala)); So maybe something else is going on? Firewalls maybe? Do any of the examples work? --min Delete Edit Reply