Thanks to both replies. I could not do any further testing yet since my job responsabilities involve more than coding.
rnixon, I will install and test with wireshark. I'll pay attention to the flags and see what is going on.
tod, I had no idea of the gist website! I'll look to register there so I ...
Search found 32 matches
- Fri Sep 10, 2010 10:29 am
- Forum: NetBurner Software
- Topic: Sockets do not seem to close
- Replies: 8
- Views: 6732
- Wed Sep 08, 2010 10:40 am
- Forum: NetBurner Software
- Topic: Sockets do not seem to close
- Replies: 8
- Views: 6732
Re: Sockets do not seem to close
Hi rnixon,
We write our own PC software and NB firmware. They comunicate with each other over TCP and serial. When the Software application starts, it sends a "hello" message and when it exits, a "goodbye" message. A handshaking scheme we came up with. We are monitoring the messaging with a ...
We write our own PC software and NB firmware. They comunicate with each other over TCP and serial. When the Software application starts, it sends a "hello" message and when it exits, a "goodbye" message. A handshaking scheme we came up with. We are monitoring the messaging with a ...
- Tue Sep 07, 2010 3:14 pm
- Forum: NetBurner Software
- Topic: Sockets do not seem to close
- Replies: 8
- Views: 6732
Re: Sockets do not seem to close
Hi rnixon,
Thanks for the reply.
"The max of 32 is located in the network programmers guide" Thanks!!! It also says 38-63 are available for expansion. How do I access those? Is there a way to monitor how many sockets are open?
"Note that any listening sockets do consume a socket, such as the web ...
Thanks for the reply.
"The max of 32 is located in the network programmers guide" Thanks!!! It also says 38-63 are available for expansion. How do I access those? Is there a way to monitor how many sockets are open?
"Note that any listening sockets do consume a socket, such as the web ...
- Tue Sep 07, 2010 2:15 pm
- Forum: NetBurner Software
- Topic: Sockets do not seem to close
- Replies: 8
- Views: 6732
Sockets do not seem to close
Hi,
I have a list of 10 sockets to possibly open, my application only utilizes 6 out of the 10.
The PC sends commands to the NetBurner to open the sockets, to listen on a port. The sockets are opened, one by one, and assigned to specific port numbers.
The 10 sockets have their file descriptors ...
I have a list of 10 sockets to possibly open, my application only utilizes 6 out of the 10.
The PC sends commands to the NetBurner to open the sockets, to listen on a port. The sockets are opened, one by one, and assigned to specific port numbers.
The 10 sockets have their file descriptors ...
- Mon Aug 02, 2010 7:23 am
- Forum: NetBurner Software
- Topic: Proper Queue usage
- Replies: 17
- Views: 13399
Re: Proper Queue usage
Paul,
float float_speed;
OSQPost( &QueueIRQ3, (void *)float_speed);
never worked for me. I was experimenting with ints. Then, when I tried the float, I got the compile error.
"invalid cast from type 'float' to type 'void*"
Tod and Larry pointed out that this would not work as is, that I had to ...
float float_speed;
OSQPost( &QueueIRQ3, (void *)float_speed);
never worked for me. I was experimenting with ints. Then, when I tried the float, I got the compile error.
"invalid cast from type 'float' to type 'void*"
Tod and Larry pointed out that this would not work as is, that I had to ...
- Fri Jul 30, 2010 12:27 pm
- Forum: NetBurner Software
- Topic: Proper Queue usage
- Replies: 17
- Views: 13399
Re: Proper Queue usage
Paul,
That's how I started the float discussion. Please see my post from "Fri Jul 23, 2010 6:42 am"
".......I got it to work, except for one case where I want to queue a float:
float float_speed;
OSQPost( &QueueIRQ3, (void *)float_speed);
I get this error: invalid cast from type 'float' to type ...
That's how I started the float discussion. Please see my post from "Fri Jul 23, 2010 6:42 am"
".......I got it to work, except for one case where I want to queue a float:
float float_speed;
OSQPost( &QueueIRQ3, (void *)float_speed);
I get this error: invalid cast from type 'float' to type ...
- Fri Jul 30, 2010 7:33 am
- Forum: NetBurner Software
- Topic: Proper Queue usage
- Replies: 17
- Views: 13399
Re: Proper Queue usage
Tod, thanks for the reply. I'm not a C++ programmer, but I was reading a little about static variables, and knew what they mean inside a class. I don't have that section of code implemented with classes, so I think the simplest way (without resorting to "pigs") would be to declare a static float ...
- Thu Jul 29, 2010 11:27 am
- Forum: NetBurner Software
- Topic: Proper Queue usage
- Replies: 17
- Views: 13399
Re: Proper Queue usage
Thanks all for the replies.
So I guess putting the float into a queue is not good practice; specially after seeing the warnings and workarounds to do so.
So what would be the proper method of doing this?
Tod wrote: "....(probably pass an actual pointer to a float). What are you going to do if you ...
So I guess putting the float into a queue is not good practice; specially after seeing the warnings and workarounds to do so.
So what would be the proper method of doing this?
Tod wrote: "....(probably pass an actual pointer to a float). What are you going to do if you ...
- Fri Jul 23, 2010 7:42 am
- Forum: NetBurner Software
- Topic: Proper Queue usage
- Replies: 17
- Views: 13399
Re: Proper Queue usage
Hi Tod and Paul, thanks for the replies.
I got it to work, except for one case where I want to queue a float:
float float_speed;
OSQPost( &QueueIRQ3, (void *)float_speed);
I get this error: invalid cast from type 'float' to type 'void*'
Why is this? isn't a float represented as a 32-bit value ...
I got it to work, except for one case where I want to queue a float:
float float_speed;
OSQPost( &QueueIRQ3, (void *)float_speed);
I get this error: invalid cast from type 'float' to type 'void*'
Why is this? isn't a float represented as a 32-bit value ...
- Wed Jul 21, 2010 9:25 am
- Forum: NetBurner Software
- Topic: Proper Queue usage
- Replies: 17
- Views: 13399
Re: Proper Queue usage
Hi Paul,
Thanks for the reply.
"You don't pass the pointer.(You are correct it can go out of scope)"
I'm actually posting the value of i ?
Example:
- int i is a local variable let's say at address 100 .
- assign i = 5
- OSQPost(&myQ, (void * i));
I'm storing 5 into the queue?
Where can i go ...
Thanks for the reply.
"You don't pass the pointer.(You are correct it can go out of scope)"
I'm actually posting the value of i ?
Example:
- int i is a local variable let's say at address 100 .
- assign i = 5
- OSQPost(&myQ, (void * i));
I'm storing 5 into the queue?
Where can i go ...