HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
Operating System - NonStop OS
cancel
Showing results for 
Search instead for 
Did you mean: 

Cobol - start a TCP connection

 
kilarsen
Occasional Contributor

Cobol - start a TCP connection

Hi,

 

I am trying to find out how I can create a TCP connect from within cobol.

 

The thing is that I have already got a program which is set up with a listener process, waiting for someone intiating a connection. In that program the accept for the connection is made with 'enter c "accept_conn" of clib'.

 

So what I am looking for the program to be the active one to initiate the connection, but I have not been able to find the correct command to be used for the 'enter c.......'

 

Is there anyone who can guide me in the right direction of manuals og sample code for doing this and/or the possibilities of using 'enter c.......' i cobol on a HP nonstop machine

 

Best regards

Kim

 

 

P.S. This thread has been moved from NonStop Servers to NonStop OS. -HP Forum Moderator

1 REPLY
kilarsen
Occasional Contributor

Re: Cobol - start a TCP connection

Problem solved :-)

 

We thought it was some standard c code coming with the nonstop machine - but is was something made by a collegue long time ago and he is not working here anymore.