Hi all,
Is it possible to loop a connection to a site where different pages only means changing 1 number.
The modified socket details below work fine the first time round, but when it loops ...
Type: Posts; User: JohnGM
Hi all,
Is it possible to loop a connection to a site where different pages only means changing 1 number.
The modified socket details below work fine the first time round, but when it loops ...
Hi all....
Just adding , you are using "atbats" in the while condition before you have given it a value..
Hi all,
I do tend to agree. Plenty want to toss around all the technical names for everything, rather than explaining a simple way. If I start reading and it sounds messy I move on to...
Hi ..
And yes the rest of the loadShapes(), functions works, it extracts the number 5 and then extracts the characters.
One thing I may suggest is to add a statement after the "for- loop "to...
Hi ..
I had it working as you asked, in the basic version to make it run with the error code in there...but no display of shapes..
You have to make sure the information is being passed to the...
Hi
After 4 days looking, you should have an idea where the problem area is......what sort of Debug approach did you use...
As the loadShapes() function has 3 return numbers, which was getting...
Hi all..
1 possible issue...
The if statement "if(prime==0)" line 43, should have opening and closing curly braces as the if contains more than 1 statement.
John
Hi all..
One thing I would suggest from my limited understanding is...not to think of the (*) as being a pointer. But look at how its presented....the * character is also a dereferencing character...
Hi
Besides any issues mentioned above...if you wanted to get out of the loops...I can't see a reason to not use a goto . Its not the ideal choice and not a popular choice...but can't see why it...
Hi ..
I have looked twice now and yet to find a call to that function....where did I miss it ?
H ..
I assume as the second 'if' or 'else if' has an expresson with an additional c int....it is possible of a False result....but what is the value given if it is False....you only give a value...
Hi all..
In the forum I read now and then about using pseudocode, I am curious as to which code is used and is it something you use on a regular basis.
I have never used such a thing , the only...
Hi ..
As far as I can see you are missing nothing in the strtol() fuction....I ran the code and got a number everytime, also got "123" when I tested that , but only when changed 4 to 10.... what...
Hi...
Looking at the strncpy function...you would be cpying 3 char....and yet again missing the '\0' char. which could cause you problems..
As mentioned earlier...if you had of tested the...
Hi.
Thanks for going to such effort...
I found a problem with the string I was using, I had a space or 2 in it that was causing an issue. Mind you I could swear blind I had tried changing...
Hi...
I have put a program together, that now gives me similar printout as your suggestion.....Nominal Animal
Have since found some information on HTTP commands......and understand how you came...
Hi
I don't see the connection between not having an idea for a program and the language being not Object oriented..?
Do you have ideas using OOP......if so...why not try to do them in C..
Hi..
Thank you for the reply...now have the Bgnet. pdf ...and going thru it... I was using dot format as in 96.126.107.76 which was not getting me far... so will work on your suggestion....
Hi..
Let me have a crack at this.......use a pointer to that string ( char *). you can then change what is being pointed to .. ie. your string
Hi..
Did you check the return values for the malloc() , if there is an issue with the allocation it returns a NULL....so test against a NULL..
And why are you using a Return 1 ....that...
Hi all...
A perfect example of what Salem is tallking about.....check out Amateur Radio forums....there is plenty of developement in SDR, Software Defined Radios....it takes just 3/4-chips and you...
Hi ..
Been trying to work out an dot style IP address, but I keep getting a 400 Bad request..
I have tried with yahoo and seems to work ok...
I know little about the internet...
Hi...
Well ya learn something new everyday....thanks whiteflags
I knew BUFSIZ had to be something, with the Capitals.....don't remember ever seeing it used.
As for sizeof.......it was not...
Hi...
Also, just going through the lines... I find "char line[BUFSIZ]; " what is BUFSIZ, no declaration or initialising .
Some brackets around " sizeof()...needed.
Part 2...
the buffer has hex data of 45 00 00 38, the 45 is split into a 4 and 5, but when casting into a structure it reverses....what am I missing... this is an Internet Header...first...