![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello all. I'm having a really hard time with D3 sockets. I cannot get a D3 socket to connect to the outside world. I can get the outside world to connect to a socket server/listner on my D3/Linux system but cannot make it work the other way round. I have a short Java server program listening to port 2002 the D3 machine which gives visual feedback about incomming connections. I can connect to this Java server using another Java program - even using an external connection such as Windows XP Telnet. It is just the D3 program that won't connect. Are D3/Linux client sockets broken? Here is the essential code (transcribed): cfunction socket.builtin include dm,bp,includes sysid.inc include dm,bp.unix.h socket.h SOC.ID = %socket(AF$INET, SOCK$STREAM, 0) IF SOCK.ID < 0 THEN ... handle error ... END PORT = 2002 ERR.FLAG = %connect(SOC.ID, AF$INET, "127.0.0.1", PORT) IF ERR.FLAG < 0 THEN CRT 'Unable to establish connection' END ELSE CRT 'Got a connection' END %close(SOCK.ID) The issue is not firewalling or ethernet. I can connect to the Java server (on the localhost) with anything else - just NOT D3. Thanks in advance. John Bend. |
#3
| |||
| |||
|
|
Hello all. I'm having a really hard time with D3 sockets. I cannot get a D3 socket to connect to the outside world. I can get the outside world to connect to a socket server/listner on my D3/Linux system but cannot make it work the other way round. I have a short Java server program listening to port 2002 the D3 machine which gives visual feedback about incomming connections. I can connect to this Java server using another Java program - even using an external connection such as Windows XP Telnet. It is just the D3 program that won't connect. Are D3/Linux client sockets broken? Here is the essential code (transcribed): cfunction socket.builtin include dm,bp,includes sysid.inc include dm,bp.unix.h socket.h SOC.ID = %socket(AF$INET, SOCK$STREAM, 0) IF SOCK.ID < 0 THEN ... handle error ... END PORT = 2002 ERR.FLAG = %connect(SOC.ID, AF$INET, "127.0.0.1", PORT) IF ERR.FLAG < 0 THEN CRT 'Unable to establish connection' END ELSE CRT 'Got a connection' END %close(SOCK.ID) The issue is not firewalling or ethernet. I can connect to the Java server (on the localhost) with anything else - just NOT D3. Thanks in advance. John Bend. |
![]() |
| Thread Tools | |
| Display Modes | |
| |