COBOL Example to write to a TCP/IP port

  • Follow


Does anybody out on the list have a COBOL program what will write data to=
 a=20
TCP/IP port?=20=20

I want to write data to a PC where a program on the PC is listening on a=20=

specific port on the PC.

TIA

Dave
Miller Compressing Co
Milwaukee, WI

davevogt@sbcglobal.net

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

0
Reply Dave 9/28/2009 6:45:07 PM

Dave,

there might be other examples in the list archives, I seem to vaguely
recall related discussions long ago in the past, but you may also try
the following web page for a COBOL-with-NetIPC as a starting point:

  http://www.editcorp.com/personal/lars_appel/SockSamp/

The NetIPC manual is probably a good reference for background info:

  http://docs.hp.com/en/5958-8600/index.html

The HP3000-L archives most likely also have examples or references to
examples using the Berkeley Sockets API instead of Net IPC intrinsics.

Lars.

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

0
Reply Lars 9/28/2009 7:07:24 PM


Lars Appel wrote:
> The HP3000-L archives most likely also have examples or references to
> examples using the Berkeley Sockets API instead of Net IPC intrinsics.

Indeed, a quick search in Google Groups (or on Raven) finds some more:

  http://www.beechglen.com/downloads.htm -> sockets.std

Lars.

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

0
Reply Lars 9/28/2009 7:14:30 PM

Dave,
I have always found it easier to go the other way around.  I've written VB
or C# programs that open files (or databases) on the HP directly.  I find it
easier to 'pull' rather than 'push'. Otherwise you have a two step process.
1) HP program to read data and push it, 2) PC program to read it.  The PC
can use ODBC (which I find slow) or 3rd party port controllers such as
Middleman(r) from Minisoft.

Charles C Cookston
Web Navigation LLC
CharlieCookston@WebNavigation.Net
(317) 259-1426


-----Original Message-----
From: HP-3000 Systems Discussion [mailto:HP3000-L@RAVEN.UTC.EDU] On Behalf
Of Dave Vogt
Sent: Monday, September 28, 2009 2:45 PM
To: HP3000-L@RAVEN.UTC.EDU
Subject: [HP3000-L] COBOL Example to write to a TCP/IP port

Does anybody out on the list have a COBOL program what will write data to a 
TCP/IP port?  

I want to write data to a PC where a program on the PC is listening on a 
specific port on the PC.

TIA

Dave
Miller Compressing Co
Milwaukee, WI

davevogt@sbcglobal.net

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.5.409 / Virus Database: 270.13.113/2400 - Release Date: 09/28/09
05:51:00

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

0
Reply Charles 9/29/2009 11:00:30 AM

Hi,
I wrote and posted some samples years ago :)

http://www.gui-innovations.com/html/code_samples.html#VB_HP3000

HTH

Pete

"Dave Vogt" <davevogt@SBCGLOBAL.NET> wrote in message 
news:LISTSERV%200909281445077920.34E0@RAVEN.UTC.EDU...
> Does anybody out on the list have a COBOL program what will write data to 
> a
> TCP/IP port?
>
> I want to write data to a PC where a program on the PC is listening on a
> specific port on the PC.
>
> TIA
>
> Dave
> Miller Compressing Co
> Milwaukee, WI
>
> davevogt@sbcglobal.net
>
> * To join/leave the list, search archives, change list settings, *
> * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
>
>
> __________ Information from ESET Smart Security, version of virus 
> signature database 4491 (20091008) __________
>
> The message was checked by ESET Smart Security.
>
> http://www.eset.com
>
>
> 

__________ Information from ESET Smart Security, version of virus signature database 4491 (20091008) __________

The message was checked by ESET Smart Security.

http://www.eset.com



0
Reply Pete 10/8/2009 7:30:18 PM

4 Replies
738 Views

(page loaded in 0.188 seconds)

Similiar Articles:













7/22/2012 8:34:49 AM


Reply: