Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

tcp/ip programming in fortran

7 views
Skip to first unread message

joshipk

unread,
Oct 6, 2002, 11:01:26 AM10/6/02
to

how can i do tcp/ip programming in fortran ??
r there ne libraries available or some intrinsic functions
available ...
i want to do it in fortran only without interfacing any
other language ( C or java )
thanx
Praveen

--
Posted via http://dbforums.com

Gary L. Scott

unread,
Oct 6, 2002, 1:41:22 PM10/6/02
to

You didn't indicate what platform. For Windows, I believe that there
are some library packages that support "network" programming models (see
http://www.fortranlib.com/freesoft.htm ) and look for "PVM" (Unix and
Windows actually). There is a rudamentary TCP/IP mail utility called
SEE4F from MarshallSoft (see http://www.marshallsoft.com ).
Unfortunately, their other TCP/IP products do not seem to mention
Fortran support but they may not be difficult to adapt. For most of
these types of functions it is necessary to call a c-based OS API. This
is something that is needed frequently enough in Fortran programs that I
think that all vendors should create some basic Fortran (77 style) APIs
(how about getting together and making something semi-portable as
well). I've been trying to convince GINO to add this functionality and
they do seem to be moving in the network-centric GUI direction, but they
want to limit to GUI APIs and avoid basic OS/system APIs.

I think that I remember that David Frank has some Windows-utilities and
I believe that he posted information here in the past.

joshipk

unread,
Oct 7, 2002, 2:12:31 AM10/7/02
to

btw i am on linux ..
i making a multiplayer game as part of a project in fortran ( a game
like multiplayer carrom ) and i have to submit it before november mid ..
i don't think i have enuf time to write the libraries right now ... but
in december i'll be free ....( or we can do it at an easy pace till then
)
till then can u suggest some alternative thing ...
(can we exchange private mails ?? )

Nick Maclaren

unread,
Oct 7, 2002, 3:48:40 AM10/7/02
to
In article <1897547.1...@dbforums.com>,

joshipk <mem...@dbforums.com> wrote:
>
>btw i am on linux ..
>i making a multiplayer game as part of a project in fortran ( a game
>like multiplayer carrom ) and i have to submit it before november mid ..
>i don't think i have enuf time to write the libraries right now ... but
>in december i'll be free ....( or we can do it at an easy pace till then
>)
>till then can u suggest some alternative thing ...

Don't even think about it. Write wrappers in C and call them from
Fortran. If you have to write more than a couple of hundred lines
of very simple C, you are using TCP/IP in a far too complicated way.
Go back and simplify it.


Regards,
Nick Maclaren,
University of Cambridge Computing Service,
New Museums Site, Pembroke Street, Cambridge CB2 3QH, England.
Email: nm...@cam.ac.uk
Tel.: +44 1223 334761 Fax: +44 1223 334679

David Frank

unread,
Oct 7, 2002, 5:25:48 AM10/7/02
to

"Gary L. Scott" <gary...@ev1.net> wrote in message
news:3DA075C2...@ev1.net...

> joshipk wrote:
> >
> > how can i do tcp/ip programming in fortran ??
> > r there ne libraries available or some intrinsic functions
> > available ...
> > i want to do it in fortran only without interfacing any
> > other language ( C or java )
> > thanx
> > Praveen
> >

<snip>

> I think that I remember that David Frank has some Windows-utilities and
> I believe that he posted information here in the past.
>

see: http://home.cfl.rr.com/davegemini/http.txt

Using CVF to create the http.exe from this source, I DAILY call the http.exe
program from another program
using the "system" command + file address to download, to retrieve free
price data file from a futures exchange.

I also use the http technique shown in another program that tracks/plots the
daily market.. That program reads a free source of intra-day realtime price
data via a read thread (no use is made of http.exe in that program)..

All of my development is 100% Fortran with NO C wrappers, but you must
have a MS WinInet API support library to link with.


0 new messages