Re: [U2] Sockets programming on Unidata

2012-08-20 Thread larryh
Are you the client or the server?  acceptConnection is only used by the
server to accept incoming socket connection requests.  If you're trying to
communicate as a client to a remote server, you won't use
acceptConnection, you'll just open the socket, write the request, read the
response, and close the socket.

Larry Hiscock
Western Computer Services


 Unidata 7.1.8
 HP-UX 11.11i

 I am attempting my first sockets programming project.  It appears that
 'initServerSocket' and 'openSocket' are working OK.
 'getSocketInformation' returns info.

 But 'acceptConnection' only seems to timeout, yet it returns a RESULT of
 '0' (no error).   The SocketHandle3 variable is not set.

 Without this SocketHandle3 variable I cannot read ('readSocket').  I am
 doing a 'readSocket' after I have done a 'writeSocket' I am expecting a
 reply from the remote application (Oaisys call recording).

 What am I missing?  The Unidata manual is pretty sparse.  Maybe I have an
 issue with network permissions/firewalling?

 Any ideas on what may be going on with 'acceptConnetion' ?   Maybe you
 have links to deeper Rocket documentation?

 Thanks,

 Marc Rutherford
 Principal Programmer Analyst
 Advanced Bionics LLC
 661) 362 1754

 ___
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/mailman/listinfo/u2-users



___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Sockets programming on Unidata

2012-08-20 Thread Rutherford, Marc
Got it, I am the client - so the 'init' and 'accept' not applicable.

So I should both  'write' and 'read' using the same SocketHandle?

Marc Rutherford
Principal Programmer Analyst
Advanced Bionics LLC
661) 362 1754


-Original Message-
From: u2-users-boun...@listserver.u2ug.org 
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of lar...@wcs-corp.com
Sent: Monday, August 20, 2012 9:12 AM
To: U2 Users List
Subject: Re: [U2] Sockets programming on Unidata

Are you the client or the server?  acceptConnection is only used by the server 
to accept incoming socket connection requests.  If you're trying to communicate 
as a client to a remote server, you won't use acceptConnection, you'll just 
open the socket, write the request, read the response, and close the socket.

Larry Hiscock
Western Computer Services


 Unidata 7.1.8
 HP-UX 11.11i

 I am attempting my first sockets programming project.  It appears that 
 'initServerSocket' and 'openSocket' are working OK.
 'getSocketInformation' returns info.

 But 'acceptConnection' only seems to timeout, yet it returns a RESULT of
 '0' (no error).   The SocketHandle3 variable is not set.

 Without this SocketHandle3 variable I cannot read ('readSocket').  I 
 am doing a 'readSocket' after I have done a 'writeSocket' I am 
 expecting a reply from the remote application (Oaisys call recording).

 What am I missing?  The Unidata manual is pretty sparse.  Maybe I have 
 an issue with network permissions/firewalling?

 Any ideas on what may be going on with 'acceptConnetion' ?   Maybe you
 have links to deeper Rocket documentation?

 Thanks,

 Marc Rutherford
 Principal Programmer Analyst
 Advanced Bionics LLC
 661) 362 1754

 ___
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/mailman/listinfo/u2-users



___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Sockets programming on Unidata

2012-08-20 Thread larryh
Yes, the same SocketHandle that openSocket returns.


Larry Hiscock
Western Computer Services
Santa Clarita, CA

 Got it, I am the client - so the 'init' and 'accept' not applicable.

 So I should both  'write' and 'read' using the same SocketHandle?

 Marc Rutherford
 Principal Programmer Analyst
 Advanced Bionics LLC
 661) 362 1754


 -Original Message-
 From: u2-users-boun...@listserver.u2ug.org
 [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of
 lar...@wcs-corp.com
 Sent: Monday, August 20, 2012 9:12 AM
 To: U2 Users List
 Subject: Re: [U2] Sockets programming on Unidata

 Are you the client or the server?  acceptConnection is only used by the
 server to accept incoming socket connection requests.  If you're trying to
 communicate as a client to a remote server, you won't use
 acceptConnection, you'll just open the socket, write the request, read the
 response, and close the socket.

 Larry Hiscock
 Western Computer Services


 Unidata 7.1.8
 HP-UX 11.11i

 I am attempting my first sockets programming project.  It appears that
 'initServerSocket' and 'openSocket' are working OK.
 'getSocketInformation' returns info.

 But 'acceptConnection' only seems to timeout, yet it returns a RESULT of
 '0' (no error).   The SocketHandle3 variable is not set.

 Without this SocketHandle3 variable I cannot read ('readSocket').  I
 am doing a 'readSocket' after I have done a 'writeSocket' I am
 expecting a reply from the remote application (Oaisys call recording).

 What am I missing?  The Unidata manual is pretty sparse.  Maybe I have
 an issue with network permissions/firewalling?

 Any ideas on what may be going on with 'acceptConnetion' ?   Maybe you
 have links to deeper Rocket documentation?

 Thanks,

 Marc Rutherford
 Principal Programmer Analyst
 Advanced Bionics LLC
 661) 362 1754

 ___
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/mailman/listinfo/u2-users



 ___
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/mailman/listinfo/u2-users
 ___
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/mailman/listinfo/u2-users



___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Sockets programming on Unidata

2012-08-20 Thread Rutherford, Marc
Works like a charm, Thanks Larry.

Marc Rutherford
Principal Programmer Analyst
Advanced Bionics LLC
661) 362 1754


-Original Message-
From: u2-users-boun...@listserver.u2ug.org 
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of lar...@wcs-corp.com
Sent: Monday, August 20, 2012 9:48 AM
To: U2 Users List
Subject: Re: [U2] Sockets programming on Unidata

Yes, the same SocketHandle that openSocket returns.


Larry Hiscock
Western Computer Services
Santa Clarita, CA

 Got it, I am the client - so the 'init' and 'accept' not applicable.

 So I should both  'write' and 'read' using the same SocketHandle?

 Marc Rutherford
 Principal Programmer Analyst
 Advanced Bionics LLC
 661) 362 1754


 -Original Message-
 From: u2-users-boun...@listserver.u2ug.org
 [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of 
 lar...@wcs-corp.com
 Sent: Monday, August 20, 2012 9:12 AM
 To: U2 Users List
 Subject: Re: [U2] Sockets programming on Unidata

 Are you the client or the server?  acceptConnection is only used by 
 the server to accept incoming socket connection requests.  If you're 
 trying to communicate as a client to a remote server, you won't use 
 acceptConnection, you'll just open the socket, write the request, read 
 the response, and close the socket.

 Larry Hiscock
 Western Computer Services


 Unidata 7.1.8
 HP-UX 11.11i

 I am attempting my first sockets programming project.  It appears 
 that 'initServerSocket' and 'openSocket' are working OK.
 'getSocketInformation' returns info.

 But 'acceptConnection' only seems to timeout, yet it returns a RESULT of
 '0' (no error).   The SocketHandle3 variable is not set.

 Without this SocketHandle3 variable I cannot read ('readSocket').  I 
 am doing a 'readSocket' after I have done a 'writeSocket' I am 
 expecting a reply from the remote application (Oaisys call recording).

 What am I missing?  The Unidata manual is pretty sparse.  Maybe I 
 have an issue with network permissions/firewalling?

 Any ideas on what may be going on with 'acceptConnetion' ?   Maybe you
 have links to deeper Rocket documentation?

 Thanks,

 Marc Rutherford
 Principal Programmer Analyst
 Advanced Bionics LLC
 661) 362 1754

 ___
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/mailman/listinfo/u2-users



 ___
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/mailman/listinfo/u2-users
 ___
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/mailman/listinfo/u2-users



___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Sockets problem

2011-01-11 Thread George Gallen
If your running linux, I believe there is a PAM setting that will allow 
non-root access to ports
below 1024. If you have LinuxSEL enabled, you may need to make some tweek for 
that as well.

George

 -Original Message-
 From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-
 boun...@listserver.u2ug.org] On Behalf Of Hona, David
 Sent: Monday, January 10, 2011 11:03 PM
 To: 'U2 Users List'
 Subject: Re: [U2] Sockets problem
 
 Also check and updated your /etc/services with your desired TCP or UDP
 ports you end up using. Saves grief in the future too :)
 
 -Original Message-
 From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-
 boun...@listserver.u2ug.org] On Behalf Of Don Robinson
 Sent: Tuesday, 11 January 2011 2:38 PM
 To: U2 Users List
 Subject: Re: [U2] Sockets problem
 
 David,
 
 1024 and below are considered well known ports and are reserved for
 things
 like telnet, ftp, http, etc.
 
 You need to be careful assigning private ports so you don't tramp
 on other
 assignments.
 
 netstat will show you your current assignments.
  Don Robinson
 
 
 
 
 
 ___
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/mailman/listinfo/u2-users
 ___
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/mailman/listinfo/u2-users
 
 __
 This email has been scanned by the MessageLabs Email Security System.
 For more information please visit http://www.messagelabs.com/email
 __
 ###
 
 
 The information transmitted in this message and attachments (if any) is
 intended
 only
 for the person or entity to which it is addressed. The message may
 contain
 confidential
 and/or privileged material.  Any review, retransmission, dissemination
 or other
 use of
 or taking of any action in reliance upon this information by persons or
 entities
 other
 than the intended recipient is prohibited.  If you received this in
 error,
 please
 contact the sender and delete the material from any computer.
 
 The intended recipient of this e-mail may only use, reproduce, disclose
 or
 distribute
 the information contained in this e-mail and any attached files with
 the
 permission of IMB.
 ###
 
 
 ___
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/mailman/listinfo/u2-users
 ___
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/mailman/listinfo/u2-users
 
 ** IMPORTANT MESSAGE *
 This e-mail message is intended only for the addressee(s) and contains
 information which may be
 confidential.
 If you are not the intended recipient please advise the sender by
 return email, do not use or
 disclose the contents, and delete the message and any attachments from
 your system. Unless
 specifically indicated, this email does not constitute formal advice or
 commitment by the sender
 or the Commonwealth Bank of Australia (ABN 48 123 123 124) or its
 subsidiaries.
 We can be contacted through our web site: commbank.com.au.
 If you no longer wish to receive commercial electronic messages from
 us, please reply to this
 e-mail by typing Unsubscribe in the subject line.
 **
 
 
 
 ___
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Sockets problem

2011-01-11 Thread Norman, David (Health)
Thanks everyone for their input. We are going to change the port to one in the 
8500 range.


David Norman
Senior Software Engineer - SA Ambulance Service

ICT Services
SA Health
Government of South Australia

Box 3, GPO
Adelaide, South Australia 5001
*+61 8 8274 0384
* fax +61 8 8271 4844
* david.nor...@health.sa.gov.au


This e-mail may contain confidential information, which also may be legally 
privileged. Only the intended recipient(s) may access, use, distribute or copy 
this e-mail. If this e-mail is received in error, please inform the sender by 
return e-mail and delete the original. If there are doubts about the validity 
of this message, please contact the sender by telephone. It is the recipient's 
responsibility to check the e-mail and any attached files for viruses.



___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Sockets problem

2011-01-10 Thread Drew William Henderson
It's been a couple years, but i believe ports in the lower range can only be 
linked to root processes.

Drew

-Original Message-
From: Norman, David (Health) david.nor...@health.sa.gov.au
Sent: Monday, January 10, 2011 9:55 PM
To: 'u2-users@listserver.u2ug.org' u2-users@listserver.u2ug.org
Subject: [U2] Sockets problem


We are trying to establish a Server Side Socket Connection using 
initServerSocket (UniVerse 10.0.16 HP-UX 11) for a third party system to 
connect. We are finding that using a port less than 1024 results in an error 34 
SCK-EACCESS Attempt to connect datagram socket to broadcast address failed 
because setSocketOption Broadcast is not enabled. Ports from 1024 upwards 
don't have this error. Anyone have an idea what's going on ?
Thanks,

David Norman
Senior Software Engineer - SA Ambulance Service

ICT Services
SA Health
Government of South Australia

Box 3, GPO
Adelaide, South Australia 5001
*+61 8 8274 0384
* fax +61 8 8271 4844
* david.nor...@health.sa.gov.au


This e-mail may contain confidential information, which also may be legally 
privileged. Only the intended recipient(s) may access, use, distribute or copy 
this e-mail. If this e-mail is received in error, please inform the sender by 
return e-mail and delete the original. If there are doubts about the validity 
of this message, please contact the sender by telephone. It is the recipient's 
responsibility to check the e-mail and any attached files for viruses.



___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Sockets problem

2011-01-10 Thread Don Robinson
David,

1024 and below are considered well known ports and are reserved for things 
like telnet, ftp, http, etc.

You need to be careful assigning private ports so you don't tramp on other 
assignments.

netstat will show you your current assignments. 
 Don Robinson





From: Dan McGrath dmc...@imb.com.au
To: U2 Users List u2-users@listserver.u2ug.org
Sent: Mon, January 10, 2011 10:25:27 PM
Subject: Re: [U2] Sockets problem

That is correct.

If you are in the Unix/Linux world and you need to bind to ports below
1024, you need to run/start as root, then (generally you should) drop
the rights of root once you have done it.

-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Drew William
Henderson
Sent: Tuesday, 11 January 2011 2:14 PM
To: U2 Users List
Subject: Re: [U2] Sockets problem

It's been a couple years, but i believe ports in the lower range can
only be linked to root processes.

Drew

-Original Message-
From: Norman, David (Health) david.nor...@health.sa.gov.au
Sent: Monday, January 10, 2011 9:55 PM
To: 'u2-users@listserver.u2ug.org' u2-users@listserver.u2ug.org
Subject: [U2] Sockets problem


We are trying to establish a Server Side Socket Connection using
initServerSocket (UniVerse 10.0.16 HP-UX 11) for a third party system to
connect. We are finding that using a port less than 1024 results in an
error 34 SCK-EACCESS Attempt to connect datagram socket to broadcast
address failed because setSocketOption Broadcast is not enabled. Ports
from 1024 upwards don't have this error. Anyone have an idea what's
going on ?
Thanks,

David Norman
Senior Software Engineer - SA Ambulance Service

ICT Services
SA Health
Government of South Australia

Box 3, GPO
Adelaide, South Australia 5001
*+61 8 8274 0384
* fax +61 8 8271 4844
* david.nor...@health.sa.gov.au


This e-mail may contain confidential information, which also may be
legally privileged. Only the intended recipient(s) may access, use,
distribute or copy this e-mail. If this e-mail is received in error,
please inform the sender by return e-mail and delete the original. If
there are doubts about the validity of this message, please contact the
sender by telephone. It is the recipient's responsibility to check the
e-mail and any attached files for viruses.



___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
__
###

The information transmitted in this message and attachments (if any) is 
intended 
only
for the person or entity to which it is addressed. The message may contain 
confidential
and/or privileged material.  Any review, retransmission, dissemination or other 
use of
or taking of any action in reliance upon this information by persons or 
entities 
other
than the intended recipient is prohibited.  If you received this in error, 
please
contact the sender and delete the material from any computer.

The intended recipient of this e-mail may only use, reproduce, disclose or 
distribute
the information contained in this e-mail and any attached files with the 
permission of IMB.
###

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Sockets problem

2011-01-10 Thread Hona, David
Also check and updated your /etc/services with your desired TCP or UDP ports 
you end up using. Saves grief in the future too :)

-Original Message-
From: u2-users-boun...@listserver.u2ug.org 
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Don Robinson
Sent: Tuesday, 11 January 2011 2:38 PM
To: U2 Users List
Subject: Re: [U2] Sockets problem

David,

1024 and below are considered well known ports and are reserved for things 
like telnet, ftp, http, etc.

You need to be careful assigning private ports so you don't tramp on other 
assignments.

netstat will show you your current assignments. 
 Don Robinson





___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
__
###

The information transmitted in this message and attachments (if any) is 
intended 
only
for the person or entity to which it is addressed. The message may contain 
confidential
and/or privileged material.  Any review, retransmission, dissemination or other 
use of
or taking of any action in reliance upon this information by persons or 
entities 
other
than the intended recipient is prohibited.  If you received this in error, 
please
contact the sender and delete the material from any computer.

The intended recipient of this e-mail may only use, reproduce, disclose or 
distribute
the information contained in this e-mail and any attached files with the 
permission of IMB.
###

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

** IMPORTANT MESSAGE *   
This e-mail message is intended only for the addressee(s) and contains 
information which may be
confidential. 
If you are not the intended recipient please advise the sender by return email, 
do not use or
disclose the contents, and delete the message and any attachments from your 
system. Unless
specifically indicated, this email does not constitute formal advice or 
commitment by the sender
or the Commonwealth Bank of Australia (ABN 48 123 123 124) or its subsidiaries. 
We can be contacted through our web site: commbank.com.au. 
If you no longer wish to receive commercial electronic messages from us, please 
reply to this
e-mail by typing Unsubscribe in the subject line. 
**



___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


RE: [U2] Sockets Universe Question

2006-10-17 Thread karlp
quote who=Anthony Dzikiewicz
 I will give that a shot.  We are the client in this set up.  What should
 I expect if I telnet to the banks ip with the specified port ?  I am
 trying this and the telnet just sits there.  I will talk to their guys
 to help trouble shoot this as well.

When you telnet to an IP with a port number, you should get something like:

$ telnet 192.168.1.5 13
Connected to 192.168.1.5.
Escape character is '^]'.
Tue Oct 17 08:06:21 2006
Connection closed by foreign host.

Okay, that was a telnet to a time server on my network, so it returned the
time and date, then closed the connection. On a service that's waiting for
something specific to initiate a handshake, you would get the Connected
to... line, then just sit there.

HTH,

Karl


 Thanks
 anthony

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of David Jordan
 Sent: Monday, October 16, 2006 7:50 PM
 To: u2-users@listserver.u2ug.org
 Subject: RE: [U2] Sockets Universe Question


 Hi Anthony

 Have you checked the firewall.  A quick and simple test to see if the
 socket is talking is to telnet to it using DOS or Unix Telnet utilities.

 Regards

 David Jordan
 Managing Consultant

 [EMAIL PROTECTED]

 www.dacono.com.au
 ---
 u2-users mailing list
 u2-users@listserver.u2ug.org
 To unsubscribe please visit http://listserver.u2ug.org/

 --
 No virus found in this incoming message.
 Checked by AVG Free Edition.
 Version: 7.1.408 / Virus Database: 268.13.4/477 - Release Date:
 10/16/2006


 --
 No virus found in this outgoing message.
 Checked by AVG Free Edition.
 Version: 7.1.408 / Virus Database: 268.13.4/477 - Release Date:
 10/16/2006
 ---
 u2-users mailing list
 u2-users@listserver.u2ug.org
 To unsubscribe please visit http://listserver.u2ug.org/



-- 
karl

 _/  _/  _/  _/_/_/      __o
_/ _/   _/  _/_/   _-\._
   _/_/_/  _/_/_/ (_)/ (_)
  _/ _/   _/  _/   ..
 _/   _/ arl _/_/_/  _/ earson[EMAIL PROTECTED]

--
IT Director, ATS Industrial Supply, Inc.
http://www.atsindustrial.com
Toll-free: 800-789-9300 x29
Direct2Desk: 801-978-4429
Facsimile: 801-972-3888
--
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Sockets Universe Question

2006-10-17 Thread george r smith
Anthony,
If the telnet just sits there you are most likely being blocked by a
firewall on the host as Adrian said. Ask them to open up a port (for example
port 2004) for you.
When you telnet you should get a logon message.
george

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:owner-u2-
 [EMAIL PROTECTED] On Behalf Of Anthony Dzikiewicz
 Sent: Monday, October 16, 2006 9:16 PM
 To: u2-users@listserver.u2ug.org
 Subject: RE: [U2] Sockets Universe Question
 
 I will give that a shot.  We are the client in this set up.  What should
 I expect if I telnet to the banks ip with the specified port ?  I am
 trying this and the telnet just sits there.  I will talk to their guys
 to help trouble shoot this as well.
 
 Thanks
 anthony
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of David Jordan
 Sent: Monday, October 16, 2006 7:50 PM
 To: u2-users@listserver.u2ug.org
 Subject: RE: [U2] Sockets Universe Question
 
 
 Hi Anthony
 
 Have you checked the firewall.  A quick and simple test to see if the
 socket is talking is to telnet to it using DOS or Unix Telnet utilities.
 
 Regards
 
 David Jordan
 Managing Consultant
 
 [EMAIL PROTECTED]
 
 www.dacono.com.au
 ---
 u2-users mailing list
 u2-users@listserver.u2ug.org
 To unsubscribe please visit http://listserver.u2ug.org/
 
 --
 No virus found in this incoming message.
 Checked by AVG Free Edition.
 Version: 7.1.408 / Virus Database: 268.13.4/477 - Release Date:
 10/16/2006
 
 
 --
 No virus found in this outgoing message.
 Checked by AVG Free Edition.
 Version: 7.1.408 / Virus Database: 268.13.4/477 - Release Date:
 10/16/2006
 ---
 u2-users mailing list
 u2-users@listserver.u2ug.org
 To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Sockets Universe Question

2006-10-17 Thread Anthony Dzikiewicz
Adrian,

Thanks for the suggestions.  Ive never run nmap before, this is good to
know about.  I have discovered that I plugged the routers into the
'inside' of the firewall.  They should have been on the 'dmz' side.  So,
I have corrected that and we still have issues.  

For the time being, it appears to be a network config issue rather than
a Universe issue.  Hopefully, I will get to the 'simple' part that you
describe soon.

Thanks
Anthony

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of 
 Adrian Merrall
 Sent: Monday, October 16, 2006 11:00 PM
 To: u2-users@listserver.u2ug.org
 Subject: Re: [U2] Sockets Universe Question
 
 
 Anthony,
 
  Yes I can ping it from the server running Universe from the linux 
  prompt.  I did not set up a route.  I believe the default 
 route should 
  work.  I will look into that one.  Thanks for the 
 suggestion. Anthony
 
 If you can ping the server then your routing is should be OK, 
 especially as you are doing from the lnx box running Universe.
 
 A common problem is firewalls (esp. corporate rather than 
 home linksys type ones) tend to limit outbound connections 
 and only allow outbound connections to port 80 etc.
 
 One way to test this would be to do as David suggested and 
 try to telnet to that port (telnet ipaddy port (e.g. telnet 
 123.456.789.100
 8080)
 
 As you are on linux you also should have the excellent nmap 
 tool.  Try something like nmap ipaddy - you have to run as 
 root to have access to some of the options but this will port 
 scan the remote box and let you know the ports they are 
 listening on.  Note you may want to let the bank know as 
 people can get a bit excited about port scanning as it is 
 often the first step in a remote instrusion attempt.
 
 Good luck, once you can get through my experiance is the 
 unibasic socket api works very well for the simple stuff.
 
 HTH
 
 Adrian
 ---
 u2-users mailing list
 u2-users@listserver.u2ug.org
 To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] Sockets Universe Question

2006-10-17 Thread Craig Bennett

Anthony,

If you are the client (ie contacting the bank) why are you using 
initserversocket?


Initserversocket creates a process to listen for incoming connections 
binding to one of your local IP addresses (eg 192.168.1.1 from your 
example).


To connect to the bank you need to use opensocket eg: ERR = 
OPENSOCKET(123.123.1.1, 4215, 1, 2000, SKTHDL)



HTH,


Craig
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Sockets Universe Question

2006-10-17 Thread Anthony Dzikiewicz
You're right Craig.  The reason is simple - I dont know what Im doing
yet.  When I do, Bob will be my uncle as they tell me.  Ive never done
this before.  I am actually trying to help the programmer here (blind
leading the blind).  By the end of the week, we will right where we need
to be in terms of understanding this.

Thanks for the Help Craig.  I appreciate it.

Anthony

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Craig Bennett
Sent: Tuesday, October 17, 2006 7:48 PM
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] Sockets Universe Question


Anthony,

If you are the client (ie contacting the bank) why are you using 
initserversocket?

Initserversocket creates a process to listen for incoming connections 
binding to one of your local IP addresses (eg 192.168.1.1 from your 
example).

To connect to the bank you need to use opensocket eg: ERR = 
OPENSOCKET(123.123.1.1, 4215, 1, 2000, SKTHDL)


HTH,


Craig
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.408 / Virus Database: 268.13.4/480 - Release Date:
10/17/2006
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.408 / Virus Database: 268.13.4/480 - Release Date:
10/17/2006
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Sockets Universe Question

2006-10-16 Thread Allen E. Elwood
Mongo only pawn in game of network addressing, but isn't' 192.168.1.1 only
valid inside your router firewall?  Like, that's why routers work as
firewalls, 'cus that address only works inside the router and won't go out
across the internet?

I type in that address in I.E. and get my firewall config screen!

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Anthony
Dzikiewicz
Sent: Monday, October 16, 2006 11:05
To: u2-users@listserver.u2ug.org
Subject: [U2] Sockets Universe Question


Hello All,

I need a kick in the right direction.  We are for the first time doing
some sockets programming.  We are writing an app that will talk to a
bank thru a tcp/ip connection.  The line is in and tested.  We are now
trying to test the socket connection and we are getting errors.  The
error we are getting in the initserversocket is 36.  This means that
The specified address is not a valid address for this machine.  So,
our machine is lets say '192.168.1.1' and the bank is '123.123.1.1' port
is 4215.

Im know the server that I am trying to contact is not on our network.
Our router should be handling that ?  I have successfully ping'd the ip
address of the bank.  I don't understand what we are not doing on the
Universe side.  Is there a config file that we need to set up ?

Any help is appreciated.

Thanks
Anthony
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Sockets Universe Question

2006-10-16 Thread Dan Fitzgerald
The solution might be very simple; if you don't specify an ip address in the 
initServerSocket, it defaults to the address of this server. When you do the 
acceptConnection, the requestor is sending their IP address. If this doesn't 
work, then perhaops the problemis an external one - firewalls, NAT's, that 
sort of thing.




From: Anthony Dzikiewicz [EMAIL PROTECTED]
Reply-To: u2-users@listserver.u2ug.org
To: u2-users@listserver.u2ug.org
Subject: [U2] Sockets Universe Question
Date: Mon, 16 Oct 2006 14:05:13 -0400

Hello All,

I need a kick in the right direction.  We are for the first time doing
some sockets programming.  We are writing an app that will talk to a
bank thru a tcp/ip connection.  The line is in and tested.  We are now
trying to test the socket connection and we are getting errors.  The
error we are getting in the initserversocket is 36.  This means that
The specified address is not a valid address for this machine.  So,
our machine is lets say '192.168.1.1' and the bank is '123.123.1.1' port
is 4215.

Im know the server that I am trying to contact is not on our network.
Our router should be handling that ?  I have successfully ping'd the ip
address of the bank.  I don't understand what we are not doing on the
Universe side.  Is there a config file that we need to set up ?

Any help is appreciated.

Thanks
Anthony
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Sockets Universe Question

2006-10-16 Thread Anthony Dzikiewicz
We have a point to point line intalled with a router that is configured
to take care of that.  The numbers I used in my example are not real.
The ip addresses are as different as in my example, but they are not
real.  Do you think this matters ?  
Anthony

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Allen E. Elwood
Sent: Monday, October 16, 2006 6:14 PM
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] Sockets Universe Question


Mongo only pawn in game of network addressing, but isn't' 192.168.1.1
only valid inside your router firewall?  Like, that's why routers work
as firewalls, 'cus that address only works inside the router and won't
go out across the internet?

I type in that address in I.E. and get my firewall config screen!

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Anthony
Dzikiewicz
Sent: Monday, October 16, 2006 11:05
To: u2-users@listserver.u2ug.org
Subject: [U2] Sockets Universe Question


Hello All,

I need a kick in the right direction.  We are for the first time doing
some sockets programming.  We are writing an app that will talk to a
bank thru a tcp/ip connection.  The line is in and tested.  We are now
trying to test the socket connection and we are getting errors.  The
error we are getting in the initserversocket is 36.  This means that
The specified address is not a valid address for this machine.  So,
our machine is lets say '192.168.1.1' and the bank is '123.123.1.1' port
is 4215.

Im know the server that I am trying to contact is not on our network.
Our router should be handling that ?  I have successfully ping'd the ip
address of the bank.  I don't understand what we are not doing on the
Universe side.  Is there a config file that we need to set up ?

Any help is appreciated.

Thanks
Anthony
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.408 / Virus Database: 268.13.4/477 - Release Date:
10/16/2006
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.408 / Virus Database: 268.13.4/477 - Release Date:
10/16/2006
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Sockets Universe Question

2006-10-16 Thread David Jordan
Hi Anthony

Have you checked the firewall.  A quick and simple test to see if the socket
is talking is to telnet to it using DOS or Unix Telnet utilities.

Regards

David Jordan
Managing Consultant
 
[EMAIL PROTECTED]

www.dacono.com.au
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Sockets Universe Question

2006-10-16 Thread Jeff Schasny
When  you say that you can ping the remote machine, is that from the server
running Universe? If not, you may just need to set up a static route on the
server.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Anthony Dzikiewicz
Sent: Monday, October 16, 2006 12:05 PM
To: u2-users@listserver.u2ug.org
Subject: [U2] Sockets Universe Question


Hello All,

I need a kick in the right direction.  We are for the first time doing
some sockets programming.  We are writing an app that will talk to a
bank thru a tcp/ip connection.  The line is in and tested.  We are now
trying to test the socket connection and we are getting errors.  The
error we are getting in the initserversocket is 36.  This means that
The specified address is not a valid address for this machine.  So,
our machine is lets say '192.168.1.1' and the bank is '123.123.1.1' port
is 4215.

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.408 / Virus Database: 268.13.4/477 - Release Date: 10/16/2006
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Sockets Universe Question

2006-10-16 Thread Anthony Dzikiewicz
Yes I can ping it from the server running Universe from the linux
prompt.  I did not set up a route.  I believe the default route should
work.  I will look into that one.  Thanks for the suggestion.
Anthony

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jeff Schasny
Sent: Monday, October 16, 2006 8:26 PM
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] Sockets Universe Question


When  you say that you can ping the remote machine, is that from the
server running Universe? If not, you may just need to set up a static
route on the server.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Anthony
Dzikiewicz
Sent: Monday, October 16, 2006 12:05 PM
To: u2-users@listserver.u2ug.org
Subject: [U2] Sockets Universe Question


Hello All,

I need a kick in the right direction.  We are for the first time doing
some sockets programming.  We are writing an app that will talk to a
bank thru a tcp/ip connection.  The line is in and tested.  We are now
trying to test the socket connection and we are getting errors.  The
error we are getting in the initserversocket is 36.  This means that
The specified address is not a valid address for this machine.  So,
our machine is lets say '192.168.1.1' and the bank is '123.123.1.1' port
is 4215.

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.408 / Virus Database: 268.13.4/477 - Release Date:
10/16/2006
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.408 / Virus Database: 268.13.4/477 - Release Date:
10/16/2006
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.408 / Virus Database: 268.13.4/477 - Release Date:
10/16/2006
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Sockets Universe Question

2006-10-16 Thread Anthony Dzikiewicz
I will give that a shot.  We are the client in this set up.  What should
I expect if I telnet to the banks ip with the specified port ?  I am
trying this and the telnet just sits there.  I will talk to their guys
to help trouble shoot this as well.

Thanks
anthony

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David Jordan
Sent: Monday, October 16, 2006 7:50 PM
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] Sockets Universe Question


Hi Anthony

Have you checked the firewall.  A quick and simple test to see if the
socket is talking is to telnet to it using DOS or Unix Telnet utilities.

Regards

David Jordan
Managing Consultant
 
[EMAIL PROTECTED]

www.dacono.com.au
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.408 / Virus Database: 268.13.4/477 - Release Date:
10/16/2006
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.408 / Virus Database: 268.13.4/477 - Release Date:
10/16/2006
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] Sockets Universe Question

2006-10-16 Thread Adrian Merrall

Anthony,


Yes I can ping it from the server running Universe from the linux
prompt.  I did not set up a route.  I believe the default route should
work.  I will look into that one.  Thanks for the suggestion.
Anthony


If you can ping the server then your routing is should be OK,
especially as you are doing from the lnx box running Universe.

A common problem is firewalls (esp. corporate rather than home linksys
type ones) tend to limit outbound connections and only allow outbound
connections to port 80 etc.

One way to test this would be to do as David suggested and try to
telnet to that port (telnet ipaddy port (e.g. telnet 123.456.789.100
8080)

As you are on linux you also should have the excellent nmap tool.  Try
something like nmap ipaddy - you have to run as root to have access
to some of the options but this will port scan the remote box and let
you know the ports they are listening on.  Note you may want to let
the bank know as people can get a bit excited about port scanning as
it is often the first step in a remote instrusion attempt.

Good luck, once you can get through my experiance is the unibasic
socket api works very well for the simple stuff.

HTH

Adrian
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Sockets API Message 29

2006-02-20 Thread Glen Batchelor
PS:

EBADF means (E)rror: (Bad) (F)ile Descriptor

  Most file I/O error flags start with E and have some kind of cryptic
abbreviation next to it. That is, unless it is under Windows Sockets.
Windows has it's own error code scheme. :) Just Google the net for the error
code or error flag and you'll find all kinds of implementations and
descriptions of the code.

---
Glen Batchelor
IT Director
All-Spec Industries
phone: (910) 332-0424
fax: (910) 763-5664
e-mail: [EMAIL PROTECTED]
---
www.allspec.com
---

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:owner-u2-
 [EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
 Sent: Monday, February 20, 2006 12:19 PM
 To: u2-users
 Subject: [U2] Sockets API Message 29
 
 I am running a special-purpose server using the Unidata 6.1 Sockets API.
 Certain client timeout events cause me to receive Socket Error:
 29 SCK_EBADF.
 
 Interestingly, the Unidata 6.1 and 7.1 manuals give two different
 descriptions:
 
 In Unidata 6 Manual:
 bSCK_EBADF  For Windows CE AF_IRDA sockets only: the shared serial port
 is busyb
 
 In Unidata 7.1 Manual:
 bSCK_EBADF  Descriptor Socket is not valid.b
 
 Our environment is currently running Unidata 6.1.
 
 This server runs normally most of the time, and I'm trying to isolate the
 client event that causes this condition.
 
 I haven't been able to find anything that describes this condition, and I
 have only the  fuzziest idea of what it means.
 
 Does anyone know what it means?  Or point me to a reference that discusses
 it in intelligible terms?
 
 Thanks so much in advance.
 
 Gizbolabobo
 ---
 u2-users mailing list
 u2-users@listserver.u2ug.org
 To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re:[U2] Sockets

2005-09-21 Thread Jeff Schasny
Universe can pass socket handles to a called external subroutine.



Tony Gravagno wrote:
[snip]
 This is entirely
unacceptable.  The fact that MV can't fork or pass handles to child
processes to handle web/socket requests compounds the issue because it
makes all operations single-threaded unless you have client code that's
intelligent enough to do a round-robin among multiple server sockets.

Jeff Schasny | Denver, Colorado, USA | [EMAIL PROTECTED]
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] sockets

2005-09-20 Thread Tony Gravagno
Cedric Fontaine wrote:
 Tony Gravagno wrote:
 Here is a link to the question and answer.
 http://forums.rainingdata.com/index.php?showtopic=869
 
 Sorry but as a developper of JD3, I disagree that jd3
 cannot be used on live site. Since two years we're using
 jd3 on live sites and it works ! Easily with only 5 jd3
 client, a website is serving about 250.000 pages per
 month. Don't you think that flashconnect is using socket
 to communicate ? 

Cedric is referring to a comment I made at that link.
I don't want to get into a heated discussion about D3 socket connectivity
in a U2 forum, but this is a well known topic which has been discussed
elsewhere and it may affect U2 users who work with sockets too.  If an MV
process dies while it has the handle to a socket server open, the host OS
doesn't know about it immediately and may not be able to release the socket
resources until the MV DBMS is restarted and MV memory and other resources
are released.  That means the one and only port that all users rely on to
connect into goes non-responsive, and you may need to reboot all users in
order to get your connectivity back on one line.  This is entirely
unacceptable.  The fact that MV can't fork or pass handles to child
processes to handle web/socket requests compounds the issue because it
makes all operations single-threaded unless you have client code that's
intelligent enough to do a round-robin among multiple server sockets.
FlashCONNECT acts as a client to a middle-tier server, FC is not a server
at the DBMS level.  You have 64000 socket ports that you can use, so a dead
connection is no big deal unless you lose many of these each day.

D3 *nix behaves better than D3NT in this regard, and Universe and Unidata
will have their own considerations across platforms and releases.  The rule
of thumb is to trust but verify, and don't simply assume that sockets are
a universal solution - pun intended I guess.

Comments from someone with a U2 clue are welcome.

Tony
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/