home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / protocol / tcpip / 5289 < prev    next >
Encoding:
Text File  |  1992-11-23  |  3.0 KB  |  68 lines

  1. Newsgroups: comp.protocols.tcp-ip
  2. Path: sparky!uunet!usc!cs.utexas.edu!sun-barr!ames!tulane!rouge!jmfres11
  3. From: jmfres11@ucs.usl.edu (Karthikeyan Gurnswamy)
  4. Subject: Pascal Waterloo TCP/IP library
  5. Message-ID: <1992Nov21.055349.28577@usl.edu>
  6. Sender: anon@usl.edu (Anonymous NNTP Posting)
  7. Organization: Univ. of Southwestern La., Lafayette
  8. Date: Sat, 21 Nov 1992 05:53:49 GMT
  9. Lines: 57
  10.  
  11. In article <peter.722065275@palin.cc.monash.edu.au> peter@palin.cc.monash.edu.au (Peter Hawkins) writes:
  12. >I need to interface a turbo pascal (V6) application to TCP/IP. The
  13. >application is heavily OOP & TVision etc so I pretty well am forced
  14. >to use turbo pascal. It's huge & re-writing in C is not practical.
  15. >I could use novell IPX & Banyan Vines, but I want it to be more
  16. >general if I can.
  17. >
  18. >I got a copy of wattcp - a mixture of asm & C, and compiled it with
  19. >BCC, but unfortunately I couldn't link the C & pascal object files
  20. >without leaving unresolved externals - Borland's advice was that
  21. >interfacing C to Pascal will not work with any C code which is either
  22. >not-straightforward (in calling) or which utilises intrinsic libraries.
  23. >(They advised against my attempting it - and suggested I re-write the
  24. >TCP/IP stack in pascal!)
  25.  
  26. First get the Waterloo TCP/IP manual and make identical functions in
  27. C itself like psock_init(), psock_read() which calls sock_init()
  28. and sock_read() respectively. Declare psock_init() in the waterloo
  29. as 
  30. pascal psock_init()
  31. This directive is for linking your pascal routines correctly with
  32. the C function with correct function parameters. You have do the
  33. pascal psock_init()
  34. in one of the Waterloo TCP/IP source files itself. Build the Waterloo
  35. TCP/IP library. Now make a small pascal routine which calls psock_init()
  36. or psock_read() and compile and link it with the new library and all
  37. the support pascal and c libraries like cs.lib + maths.lib etc.,
  38. Wild guess - Might work ...
  39.  
  40. >Before embarking on a major project such as re-writing the stack, or
  41. >giving up and using IPX and Vines, I thought I'd try and see if anyone
  42. >knew:
  43. >
  44. >1)  What public domain / commercial TCP/IP stacks are there which might
  45. >    be callable from turbo C?
  46. >
  47. >2)  Are there any stacks around written entirely in assembly or (joy of
  48. >    joys!) pascal?
  49. >
  50. >Thanks in advance,
  51. >
  52. >Peter
  53.  
  54. Karthik
  55. /----------------------------------------\--------------------------\
  56. | Karthikeyan Guruswamy                  |                          |
  57. | Graduate Student, Computer Science     | Why does'nt my:          |
  58. | Center for Advanced Computer Studies   |                          | 
  59. | Univ. of SouthWestern Louisiana        |    NET WORK ?            |
  60. | Lafayette, LA 70501                    |                          |
  61. | Email: jmfres11@ucs.usl.edu            |                          |
  62. |                                        \--------------------------\
  63. | The opinions stated are solely mine and does not reflect the views|
  64. | of anyone in my organization ...                                  |
  65. \-------------------------------------------------------------------/ 
  66.  
  67.  
  68.