- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May I use tcp and udp simultaneously within a iniche stack?
how to implement? //create two task for each like the simple socket server? thanks a lot for your help!Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have implement two tcp task,and it works well.
next: implement a tcp task and a udp task.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sure, you can.
What's the problem? If you already implemented two tcp tasks, you only need to change one socket from SOCK_STREAM to SOCK_DGRAM- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yes. I change the tcp socket to sock_DGRAM.
and I have implemented 1 tcp task and 1 udp task. and they worked well.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page