User Profile
Collapse
-
i added some code to double check that each socket is actually timing out, in the part that handles timeouts in the above code. So far that seems like its solved the problem, but i havent had time to really test it yet. It seems to me like the select call has a few problems. I might just write my own select method to simplify things if it is a problem with select() -
you can use strings just like arrays. So just copy out the parts you need into new arrays.Leave a comment:
-
I wrote a Java program like this a while back. Heres how i did it.
make an array buffer. something like
char buffer[1024];
start reading from the file. Put the first 1024 bits from the file into the buffer
while( buffer is not empty)
send the array over network to whichever computer wants to get the file.
read next 1024 bites into the buffer.
...Leave a comment:
-
hmm. I just compiled and ran your code on linux. Seems to work fine, no exceptions, and i think it ran all the way through.
heres the end of the output. Is that right?
...Code:LIST OF EQUIVALENT ATOMS TOP[11] IS 11 TOP[12] IS 11 THERE IS ONE CHIRAL ATOM IN THE MOLECULE complexity = 9 sumofcomplexity = 19 END OF DUMP OF m[2]. } CT OF REACTANT THIS IS THE
Leave a comment:
-
Nothing obviously wrong has popped out at me yet, ill try downloading your attachments to look at your code a little closer.
What is the exception you are getting thou? And have you tried using a debuging utility to try and find out where the exception is being thrown and to see exactly what your code is actually doing?Leave a comment:
-
Windows networking
Up until now, ive done all my C++/C programing on linux. I'd like to write a small chat type program for a friend of mine. I understand windows networking in C/C++ is slightly different. Does anyone know of any good website/tutorials or simple networking examples, that would highlight the differences for me?
I havent really tried or read much about it yet, but from what i understand, the main difference is just that you import... -
select call is timing out? im stumped
ok ill start off with a little background. I work for a company which makes heavy duty wireless routers/bridges, which work over long distances. Up to 30miles. Now each of our units comes with a scan utility, which can be used to default and change the ip of units. A quick example, say your on a network of 192.168.100.0. You obviously wont be able to comminicate with our unit on your network if the units ip is 206.71.186.46. The scan utility...
No activity results to display
Show More
Leave a comment: