Re: Compiling/using socket client and server
From: C. Coulter (wizard2277_at_hotmail.com)
Date: 11/19/04
- Next message: Jean-Pierre Radley: "Re: Really slow HD access"
- Previous message: Nachman Yaakov Ziskind: "Really slow HD access"
- In reply to: Ian Wilson: "Re: Compiling/using socket client and server"
- Next in thread: J. L. Schilling: "Re: Compiling/using socket client and server"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Next message: Jean-Pierre Radley: "Re: Really slow HD access"
- Previous message: Nachman Yaakov Ziskind: "Really slow HD access"
- In reply to: Ian Wilson: "Re: Compiling/using socket client and server"
- Next in thread: J. L. Schilling: "Re: Compiling/using socket client and server"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|