home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.protocols.tcp-ip
- Path: sparky!uunet!usc!cs.utexas.edu!sun-barr!ames!tulane!rouge!jmfres11
- From: jmfres11@ucs.usl.edu (Karthikeyan Gurnswamy)
- Subject: Pascal Waterloo TCP/IP library
- Message-ID: <1992Nov21.055349.28577@usl.edu>
- Sender: anon@usl.edu (Anonymous NNTP Posting)
- Organization: Univ. of Southwestern La., Lafayette
- Date: Sat, 21 Nov 1992 05:53:49 GMT
- Lines: 57
-
- In article <peter.722065275@palin.cc.monash.edu.au> peter@palin.cc.monash.edu.au (Peter Hawkins) writes:
- >I need to interface a turbo pascal (V6) application to TCP/IP. The
- >application is heavily OOP & TVision etc so I pretty well am forced
- >to use turbo pascal. It's huge & re-writing in C is not practical.
- >I could use novell IPX & Banyan Vines, but I want it to be more
- >general if I can.
- >
- >I got a copy of wattcp - a mixture of asm & C, and compiled it with
- >BCC, but unfortunately I couldn't link the C & pascal object files
- >without leaving unresolved externals - Borland's advice was that
- >interfacing C to Pascal will not work with any C code which is either
- >not-straightforward (in calling) or which utilises intrinsic libraries.
- >(They advised against my attempting it - and suggested I re-write the
- >TCP/IP stack in pascal!)
-
- First get the Waterloo TCP/IP manual and make identical functions in
- C itself like psock_init(), psock_read() which calls sock_init()
- and sock_read() respectively. Declare psock_init() in the waterloo
- as
- pascal psock_init()
- This directive is for linking your pascal routines correctly with
- the C function with correct function parameters. You have do the
- pascal psock_init()
- in one of the Waterloo TCP/IP source files itself. Build the Waterloo
- TCP/IP library. Now make a small pascal routine which calls psock_init()
- or psock_read() and compile and link it with the new library and all
- the support pascal and c libraries like cs.lib + maths.lib etc.,
- Wild guess - Might work ...
-
- >Before embarking on a major project such as re-writing the stack, or
- >giving up and using IPX and Vines, I thought I'd try and see if anyone
- >knew:
- >
- >1) What public domain / commercial TCP/IP stacks are there which might
- > be callable from turbo C?
- >
- >2) Are there any stacks around written entirely in assembly or (joy of
- > joys!) pascal?
- >
- >Thanks in advance,
- >
- >Peter
-
- Karthik
- /----------------------------------------\--------------------------\
- | Karthikeyan Guruswamy | |
- | Graduate Student, Computer Science | Why does'nt my: |
- | Center for Advanced Computer Studies | |
- | Univ. of SouthWestern Louisiana | NET WORK ? |
- | Lafayette, LA 70501 | |
- | Email: jmfres11@ucs.usl.edu | |
- | \--------------------------\
- | The opinions stated are solely mine and does not reflect the views|
- | of anyone in my organization ... |
- \-------------------------------------------------------------------/
-
-
-