From: SourceForge.net <no...@so...> - 2007-04-10 14:28:23
|
Bugs item #1697319, was opened at 2007-04-10 05:53 Message generated for change (Comment added) made by orexx You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=684730&aid=1697319&group_id=119701 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Martin Berg (martinberg) Assigned to: Nobody/Anonymous (nobody) Summary: RX SockConnect return -1 Initial Comment: ooRexx Version 312 Windows/xp Socket programs do not work with ooRexx 312 Rc1 . SockConnect return -1 . ......... Martin ---------------------------------------------------------------------- >Comment By: Rony G. Flatscher (orexx) Date: 2007-04-10 16:28 Message: Logged In: YES user_id=662126 Originator: NO Downloaded *your* sockets module and created the following program: ------------------ cut here ------------------ SDI_IP_Address = '9.145.140.40' SDI_IP_Port = '3003' say "trying original:" SDI_IP_Address":"SDI_IP_Port socket = .sockets~new(SDI_IP_Address,SDI_IP_Port) say socket~query say "---" SDI_IP_Address= '137.208.16.27' SDI_IP_Port = '80' say "trying wu-wien:" SDI_IP_Address":"SDI_IP_Port socket = .sockets~new(SDI_IP_Address,SDI_IP_Port) say socket~query ::requires sockets.cls ------------------ cut here ------------------ The output of running it on my machine yields: ------------------ cut here ------------------ trying original: 9.145.140.40:3003 188 0 Cannot Connect to Socket 9.145.140.40 3003 --- trying wu-wien: 137.208.16.27:80 200 1 0 ------------------ cut here ------------------ So sockets on 3.1.2-RC1 look o.k. to me. ---------------------------------------------------------------------- Comment By: Rony G. Flatscher (orexx) Date: 2007-04-10 14:51 Message: Logged In: YES user_id=662126 Originator: NO You have not supplied the values of the variables ERRNO and H_ERRNO, which the socket library sets in case of an error. Are you sure that you have access to 9.145.140.40 at port 3003 from your 3.1.2 box? To make sure you could try telnet to connect to it like: telnet 9.145.140.40 3003 or first just try to ping the host: ping 9.145.140.40 Running with my socket package I get the following ERRNO and H_ERRNO describing the problem I have (which is not linked to 3.1.2-RC1): ERRNO=EHOSTUNREACH H_ERRNO=1541 ---------------------------------------------------------------------- Comment By: Martin Berg (martinberg) Date: 2007-04-10 12:20 Message: Logged In: YES user_id=1765377 Originator: YES The was no change within my pc. The Rexxcode is still the same and also the operating system. The problem occured after installing oorexx 312 and after I switched back to 311 the problem disappeared. The problem occures when the socket object will be defined SDI_IP_Address = '9.145.140.40' SDI_IP_Port = '3003' socket = .sockets~new(SDI_IP_Address,SDI_IP_Port) The return code of SockConnect is -1 . (Version 312) Using ooRexx 311 the return code is 0 File Added: sockets.CLS ---------------------------------------------------------------------- Comment By: Rony G. Flatscher (orexx) Date: 2007-04-10 12:11 Message: Logged In: YES user_id=662126 Originator: NO Please supply more information. E.g. use case, code snippet, comparison to pre 3.1.2 (did you change your program, setup of your PC in the meantime?) as well as the values of ERRNO and H_ERRNO after SockConnect returns -1. Please report back in any case. (My test socket pgms work on 3.1.2.) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=684730&aid=1697319&group_id=119701 |