[SLUG] c programming - structures

2004-10-16 Thread Lucas King
hello, how does one compare two structures of the same type? Anjuta is returning an error when i compile : if (sin1 == sin2) { .. .. } where sin1 and sin2 are structures of the same type. the sin structure is sockaddr_in. thanking you in advance, Lucas

[SLUG] C++ fstream class

2004-03-10 Thread Lucas King
hello, a somewhat technical question - i am trying to associate a file descriptor with a file pointer using the C++ fstream class. this function is an extension to the C++ library. in the documentation that i downloaded from the WEB

Re: [SLUG] C++ fstream class

2004-03-10 Thread Lucas King
many thanks to those that replied. it works. i have been trying to make this work for the past three days. again thanks. regards, Lucas [EMAIL PROTECTED] wrote: On Thu, Mar 11, 2004 at 01:10:16AM +1100, Matthew Wlazlo wrote: Ok let's try that again (hope i read the question right this

[SLUG] [c programming] - semaphores

2003-12-17 Thread Lucas King
hello, i am going through Richard Stevens' Unix Network Programming and i have run into some difficulty that i am hoping that someone can help me with. i am attempting to compile a simple program that includes the Posix semaphores. everything goes OK until it tries to link. this fails with

[SLUG] installing Tcl

2003-09-16 Thread Lucas King
hello, i have RH9 install on my PC. it has been running fine for the last several months. i am now attempting to install Expect. in order for that to happen i need to install Tcl. i have found the Tcl/tk rpm files on the install disks which i have attempted to install using the RPM package

Re: [SLUG] installing Tcl

2003-09-16 Thread Lucas King
many thanks, it worked. regards, Luke John Clarke wrote: On Tue, Sep 16, 2003 at 06:56:48PM +1000, Lucas King wrote: i have RH9 install on my PC. it has been running fine for the last several months. i am now attempting to install Expect. in order for that to happen i need to install

Re: [SLUG] Granville TAFE Linux courses

2003-07-02 Thread Lucas King
that's strange, i rocked up to the cashier at around 1730h and they were still open with no signs of closing. Luke Amanda Wynne wrote: Hm Great archive... One message. I'm sure I could write a great monologue (or was diatribe?) about an archive with zero messages.

Re: [SLUG] Granville TAFE Linux courses

2003-07-02 Thread Lucas King
ah, but if you had gone along to the TAFE and asked Geoffrey the purpose for the site your response may be different. i don't wish to intrude into Geoffrey's domain, or steal his fire, but as he explained it to us the purpose for the site was to allow the various students in the class to

[SLUG] time on a Linux box

2002-12-01 Thread Lucas King
hello, i am looking for information as to how time is maintained on a Linux box. i am currently running Redhat 7.2 (i am not sure if this is relevant) on a box on which i have set up a time server for a network. the time server delivers its time, via NTP, as UTC. i set up the client, being

[SLUG] time server on Redhat

2002-11-26 Thread Lucas King
hello, a lot of Googling and a lot of browsing of the MAN pages has not been able to resolve this problem. perhaps someone on the list has an idea. i set up a time server using Redhat 7.2 using the default settings under xinetd. if i use rdate from another Redhat PC the time is returned

[SLUG] cdrom module

2002-11-24 Thread Lucas King
hello, i installed Redhat 7.2 on a PC using CDs. i did not install an X server as the PC is to serve as a DNS and DHCP server only. after the installation i found it necessary to install further files. however, my CD drive is no longer mountable. typing /lsmod/ at the prompt shows no

Re: [SLUG] buffering problem

2002-09-12 Thread Lucas King
PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Lucas King Sent: Sunday, 8 September 2002 4:23 To: [EMAIL PROTECTED] Subject: [SLUG] buffering problem hello, the following is an excerpt from Exploring Expect by Don Libes: Programs using the standard I/O library provided by UNIX automatically

[SLUG] programming question

2002-08-31 Thread Lucas King
where would one go if one wanted to learn specifics on learning how to program using C on Linux; with an emphasis on networking. i am not looking for a book, i have plenty of those. i am not looking for a course as such, either. more specifically, i am looking for a place or person where i

[SLUG] automating a telnet session using EXPECT

2002-08-20 Thread Lucas King
hello, a question very similar to the one i am about to ask was posted to the SLUG list last year. however, i could find no reply. the problem is as follows: the script that i have put together telnets in OK but once having done so the script stalls for approx 10 seconds. i suspect that