µTasker Forum

µTasker Forum => Luminary Micro TM LM3SXXXX => Topic started by: seulater on March 29, 2008, 01:13:06 AM

Title: Creating a TCP socket
Post by: seulater on March 29, 2008, 01:13:06 AM
unless i have totaly missed it, i cannot find the documentation on how to create a TCP listenting socket.

All i want to do to evaluate the performance is to create a TCP server say on port 10000, and to echo back what ever it gets. i would like to make this its own thread. can you give an example of how to do this or point me to the docs that say how to.
Title: Re: Creating a TCP socket
Post by: mark on March 29, 2008, 12:48:16 PM
Hi

You can find all details to working with TCP at:
http://www.utasker.com/forum/index.php?topic=25.0

The same is true for UDP at:
http://www.utasker.com/forum/index.php?topic=41.msg171#msg171

Since the listeners are callback functions it is not necessary to use a new task to handle them. However if you would like to experiment with tasks, the following can be useful:
http://www.utasker.com/forum/index.php?topic=32.0

These are the main references to these themes - if you have any questions or comments add them to thise threads. Eventually these will be converted into uTasker documents.

Regards

Mark
Title: Re: Creating a TCP socket
Post by: seulater on March 29, 2008, 02:34:22 PM
Thanks for the link, i am sure it will help allot.
i just assumed it would all be in the manual.

I will start looking in the forum more for topics.
Title: Re: Creating a TCP socket
Post by: mark on March 29, 2008, 03:00:04 PM
Hi

The advantage of the forum is that it is searchable and that it 'lives'. That is, questions can be answered and the 'documentation' immediately improved.

One day these will be copied to a document template and cleaned up a bit.

Regards

Mark