Cobol and sockets (248 Views)
Trusted Contributor
Posts: 178
Registered: ‎12-04-1997
Message 1 of 3 (248 Views)

Cobol and sockets

I have been asked to see if we can access BSD sockets via Cobol programs. Can anyone point me to the correct manual/examples?.

Ta muchly

Ian Warner
Why did anyone invent unix?
Valued Contributor
Posts: 43
Registered: ‎02-28-2002
Message 2 of 3 (248 Views)

Re: Cobol and sockets

Hi Ian,
Officially you are not going to find any samples of how to call BSD sockets from COBOL since the only language officially supported on MPE for BSD sockets is Ansi C.
The manual for BSD sockets on MPE is at>Networking and Communications->
MPE/iX General Networking->Berkeley Sockets/iX Reference Guide, however all the samples are in C.
Esteemed Contributor
Posts: 360
Registered: ‎08-21-1997
Message 3 of 3 (248 Views)

Re: Cobol and sockets


Here are some links that talk about calling non-COBOL programs: (it's scattered around)

Since it sounds like Berkeley sockets are not supported (I didn't verify this), you could be able to do it by writing the socket maniuplation stuff in C and calling them from COBOL.

What kind of a name is 'Wolverine'?
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.