Re: Compiling/using socket client and server

From: C. Coulter (wizard2277_at_hotmail.com)
Date: 11/19/04


Date: Fri, 19 Nov 2004 10:52:59 -0800

Ian:

Thanks for your comments. I'm aware of Perl.
However, I am using a higher level language
that has the ability to call C routines and
does not interface with Perl.

That's why I need to know how to compile this
program and/or what other C software might be
out there.

C. Coulter
wizard2277@hotmail.com

Ian Wilson wrote:
> C. Coulter wrote:
>
>> Hi All!
>>
>> I have a need to allow Windoze workstations to
>> communicate via sockets to my OpenServer 5.0.7
>> system. Both Windoze and OS5 will at times be
>> client and at times be server.
>>
>> I already have .NET 2003 code on the Windoze
>> side that works. What I need is C code on the
>> OS5 side for both client and server.
>>
>> I consulted the OS5.0.7 Network Programmer's
>> Guide off the SCO Web site. I have both the
>> cc and gcc compilers. I have attempted to compile
>> the Client code from the chapter entitled
>> "Developing Applications over TCP/IP using Internet
>> Sockets." First, I made the changes recommended
>> in the applicable SCO TA. Then, I attempted to
>> compile using both "cc client.c" and
>> "cc -lsocket client.c". Both of them gave me the
>> following 4 undefined symbols: gethostbyname, htons,
>> socket, and connect. I have located and included
>> all the header files shown in the SCO book (found
>> in /usr/include). The compile fails with a fatal
>> error: "Symbol referencing errors".
>>
>> What do I need to do to successfully compile this
>> program (I am not a C expert)? Secondly, are there
>> open source, skunkware, or commercial routines out
>> there that I could call from C to accomplish socket
>> communications so that I don't have to worry about
>> the low level stuff?
>>
>> Any help or comments would be appreciated,
>>
>
> I'm not sure if this helps but I'd prototype this in Perl. Perl has lots
> of modules that greatly simplify this sort of task.
>
> Your mention of .NET suggests web-services to me, if this is the case,
> I'd use SOAP::Lite - I've found this to be a remarkably easy way to
> interface with web-services on Windows systems. YMMV.
> http://www.soaplite.com/
>
> Web-service infrastructure for Perl is included in OSR507 from MP1 onwards.



Relevant Pages

  • Re: Questions about "perldoc perlembed"
    ... Ultimately I am trying to embed the ability to run Perl scripts on ... Perl to properly embed in my Win32 C++ program. ... COMPILE THE PROGRAMS IN EXACTLY THE SAME ... Eventually I read the section "Maintaining multiple interpreter ...
    (comp.lang.perl.misc)
  • Questions about "perldoc perlembed"
    ... Ultimately I am trying to embed the ability to run Perl scripts on ... Perl to properly embed in my Win32 C++ program. ... COMPILE THE PROGRAMS IN EXACTLY THE SAME ... Eventually I read the section "Maintaining multiple interpreter ...
    (comp.lang.perl.misc)
  • RE: DBI compile on HPUX-11.23
    ... I am literally in the process of building perl 5.8.7 on Itanium ... Subject: DBI compile on HPUX-11.23 ... since there's no INSTALL document I'm having problem with the ...
    (perl.dbi.users)
  • compiling perl 5.8.7 on Solaris 8
    ... I download the latest "stable" tar for perl and try to compile ... Beginning of configuration questions for perl5. ... Perl can be built to use the SOCKS proxy protocol library. ...
    (comp.sys.sun.misc)
  • compiling perl 5.8.7 on Solaris 8
    ... I download the latest "stable" tar for perl and try to compile ... Beginning of configuration questions for perl5. ... Perl can be built to use the SOCKS proxy protocol library. ...
    (comp.unix.solaris)