Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Kremer

Pages: [1]
1
Hi

I´m developing a product that needs to run a tcp client.
Basically, this product will connect to TCP Servers (one at a time), and retrieve data from it by sending a command and receiving the data.
The code for the client is working with no problems for a single Server. I mean, it connects to a server, sends the command and receives the data, and does this loop with no problems at all.
But when i add more than one server, the problem starts to happen. Basically, it connects to the first server, sends the command and receives the data. Then it must disconnect from the current server and connect to the second server to do the same task. After finishing the last server, it must connect to the first server and repeats this process.
The problem is that, after disconnecting from the first server by calling m_close function, it connects to the second, then to the third and so on, but one time it fails and nothing happens anymore, basically because the memory is full. So i can see the m_connect function returns ENOMEM (error 18), wich means it could not allocate memory for the new control block.
When i make the socket non-blocking, this get worst, and sometimes it just can´t pass the second server.

Please, any advice is helpfull.
I´m based on the Interniche stack and coldfire lite project. I know this is not related to utasker, but any help will be very well accepted!!!

2
STTM STM32 and STR91XF / STM32F103RBT6
« on: December 18, 2007, 12:19:52 PM »
 Hi Mark

 I´d like to know if are you planning on try out those little CM3 from ST. I´m trying them now, and i really miss the ethernet part, but is nice to play around with usb interface. It seems the ST will have them in low prices so i think it will be interesting in a near future. Hope ST guys are working on some CM3 parts with ethernet phy on.

 Regards.

 Alex

3
NXPTM M522XX, KINETIS and i.MX RT / Congratulations
« on: July 09, 2007, 01:18:45 PM »
 Hi Mark

 I didn´t resist to first post on MCF5223X forum  :)
 Congratulations for all the really good work with/to this micro controller and keep up this good job.
 I hope this forum can help many users and bring answers to those who need.

 Success

 Regards

Pages: [1]