Search found 8 matches

by wooly
Sat Aug 11, 2012 8:09 pm
Forum: Tricks 'n' Tips
Topic: How To Read Network Packets
Replies: 13
Views: 7724

Re: How To Read Network Packets

Sorry for dragging up an old thread, but I was lead here by Google.

It seems this code would work for a project I have, problem is when I try to compile it I get a number of errors:

POLINK: error: Unresolved external symbol 'pcap_findalldevs'.
POLINK: error: Unresolved external symbol 'pcap ...
by wooly
Sat Aug 09, 2008 2:33 pm
Forum: Coding Questions
Topic: TCP Help Please
Replies: 15
Views: 2496

Thanks for the reply Terry, I'll play around with the suggestions later and let you know how it goes.

Wooly
by wooly
Fri Aug 08, 2008 8:17 pm
Forum: Coding Questions
Topic: TCP Help Please
Replies: 15
Views: 2496

Glad I could help.

I would be interested in seeing your final code if you don't mind. You can PM it to me if your prefer.

Terry

Terry attached is the code to date, nothing earth shatteringly different. I open and close the data file every time new data is entered so that it resides in the file ...
by wooly
Thu Aug 07, 2008 2:44 pm
Forum: Coding Questions
Topic: TCP Help Please
Replies: 15
Views: 2496

Thanks to all for your help, with code samples from both Idle and Terry I have managed to capture the data I need. More importantly though, I now have a much better idea of coding in PureBasic


Wooly
by wooly
Tue Aug 05, 2008 10:28 pm
Forum: Coding Questions
Topic: TCP Help Please
Replies: 15
Views: 2496

Hi Terry, I did not post the last code I used as "Idle" sent it to me in a PM. I am not sure whether he wanted it released or not. If he has no probs I'll post it.

Thanks for your input, so far it is running OK and seems to be handling complete strings properly. I'll play around some more this ...
by wooly
Tue Aug 05, 2008 8:14 pm
Forum: Coding Questions
Topic: TCP Help Please
Replies: 15
Views: 2496

Thanks for the pointers idle. I spotted your 2 deliberate errors, no doubt designed to ensure I had a vague idea of what was going on :wink:

Anyway, there has been a marked improvement in received data, I can guarantee every second string I receive is correct and complete. In reality this means I ...
by wooly
Tue Aug 05, 2008 3:27 am
Forum: Coding Questions
Topic: TCP Help Please
Replies: 15
Views: 2496

Thanks for the response Derek, when I receive data it is always from the beginning of the string i.e the string is truncated. I tried the NetworkClientEvent() as suggested, and if I have implemented it correctly the debug always shows no data available :?

If InitNetwork() = 0
MessageRequester ...
by wooly
Mon Aug 04, 2008 9:40 pm
Forum: Coding Questions
Topic: TCP Help Please
Replies: 15
Views: 2496

TCP Help Please

Hi, I am starting to programme again after a long absence (Thank-you retirement :D )

I have programmed a PIC micro controller to read several sensors around the house (temperature, humidity, voltage, current etc). The PIC than massages this date, does a little bit of magic and then spits out a 60 ...