Author Topic: Creating a TCP socket  (Read 11681 times)

Offline seulater

  • Newbie
  • *
  • Posts: 38
    • View Profile
Creating a TCP socket
« 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.

Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3237
    • View Profile
    • uTasker
Re: Creating a TCP socket
« Reply #1 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

Offline seulater

  • Newbie
  • *
  • Posts: 38
    • View Profile
Re: Creating a TCP socket
« Reply #2 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.

Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3237
    • View Profile
    • uTasker
Re: Creating a TCP socket
« Reply #3 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
« Last Edit: March 29, 2008, 03:10:20 PM by mark »