× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Tom,

Yes Tom it is hardcoded.

I like your idea of the dtaara. I thought of the same solution. Just a port
nbr in a dtaara in my case. This is my first socket appl and the final
design is still in flux.  But the dtaara approach does have its drawbacks:
Must code another module to rtv the dtaara and handle the not found
condition, another point of failure in the code, must document that the
dtaara is used by this pgm.  more code, more documentation, more turnover
instructions, more points of failure.

In my view, this is a job for the OS.

Create a new "IpPort" object type. ( or maybe IpLclPort and IpRmtPort. Or
just "Port" )  It would encapsulate the port nbr and maybe the ip addr. The
port name is the IpPort object name. ( also encapsulates that AF_INET and
SOCK_STREAM stuff )

Provide socket api's to call instead of the C module calls. The socket api
would have a IpPort object name parm instead of a PortNbr parm.

Similar to the CrtIcff and AddIcfDeve commands in the sna/appc world.
Provide commands like "OvrPort", "CrtPort", "ChgPort".

Steve Richter


-----Original Message-----
From: thomas@inorbit.com <thomas@inorbit.com>
To: MIDRANGE-L@midrange.com <MIDRANGE-L@midrange.com>
Date: Saturday, August 25, 2001 12:06 AM
Subject: Re: exit pgm and lpar


Steve:

Surely you provide some external means of controlling which port to listen
on? Perhaps you created a *dtaara that holds a service name and you retrieve
the port from the service table. And since the service name is retrieved
from the *dtaara via the library list, you simply have two entries in the
service table, one for the name in the production library and one for the
name in the test library. Or something? Surely you didn't simply hard-code
the port number?

Tom Liotta

On Fri, 03 August 2001, "Steve Richter" wrote:

> ( I have a similar problem with a server pgm I am writing. In production,
> the server listens on port 3005 of the ip addr of the system.  In test, it
> listens also on port 3005. )
>
> Steve

--
Tom Liotta
The PowerTech Group, Inc.
19426 68th Avenue South
Kent, WA 98032
Phone  253-872-7788
Fax  253-872-7904
http://www.400Security.com


___________________________________________________
The ALL NEW CS2000 from CompuServe
Better!  Faster! More Powerful!
250 FREE hours! Sign-on Now!
http://www.compuserve.com/trycsrv/cs2000/webmail/




_______________________________________________
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/midrange-l
or email: MIDRANGE-L-request@midrange.com





As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.