-
我仿照tcp写了一个传输算法,取名叫udx,在低10mBpbs的网络,和几个网友使用udt传输文件的测试程序比较中,在大多数家庭网络(1~4m)优于udt,所以需要更多udt的相关测试程序进行测试。实时性,丢包率,速度都可以比较。
我的联系方式,msn : wpllg@hotmail.com qq: 24508609
欢迎技术交流,比较。.
2009-11-24 03:53:53 UTC by wwwllg
-
My apologies! In my actual code, I was setting the UDT_RCVTIMEO value to 60000 for all sockets created via accept() or connect(). I left that out of my example and assumed it wouldn't make a difference, but I guess that's what was causing my problems. I'm still not sure why it would do that, but I'll investigate further. Sorry again for this.
2009-11-23 00:17:27 UTC by tiredashell
-
Hi, I tried the code and got the following output:
Sending: 0
Sending: 1
Sending: 2
Sending: 3
Sending: 4
Sending: 5
Sending: 6
Sending: 7
Sending: 8
Sending: 9
Receiving: 0
Receiving: 1
Receiving: 2
Receiving: 3
Receiving: 4
Receiving: 5
Receiving: 6
Receiving: 7
Receiving: 8
Receiving: 9
This seems to be correct?.
2009-11-22 23:35:22 UTC by lilyco
-
Hi, I wrote some simple example code to show a problem that occurs if you send too many packets before the client can receive them. In it, I send the client 10 packets using sendmsg, then I have the client receive them in a loop. He only receives the first two packets.
http://pastebin.com/m4ccc587
Any help will be really appreciated.
2009-11-22 22:40:07 UTC by tiredashell
-
For the first question, you can use select first, then use accept only if select indicates that a new connection is ready.
2009-11-22 16:51:11 UTC by lilyco
-
What change from udt 4.5 to 4.6. I can't find a change log of version 4.6. Can someone point me?.
2009-11-19 10:42:04 UTC by lidios
-
Okay scrap the question on monitoring progress as I have done that now, all working just great, just the question stands about cancelling a listening state. Cheers.
2009-11-18 17:56:00 UTC by firkincoder
-
Hi there,
I'm in the process of creating a Managed C++ wrapper for the UDT framework for a project of mine. It's all working great but I have a few questions.
- How would I cancel a server from listening for a client? Currently it sits at UDT::accept until a connection comes in.
- How do I monitor progress while recieving a file, currently it sets at recvfile until the operation...
2009-11-18 17:39:36 UTC by firkincoder
-
int64_t sendfile(
UDTSOCKET u,
fstream& ifs,
const int64_t offset,
const int64_t size,
const int block = 7320000
);
这个函数我应该如何在delphi中进行定义呢? fstream& ifs主要是这个参数。有没有人能解答一下啊 万分感谢.
2009-11-17 02:34:24 UTC by wwywt
-
lilyco committed patchset 209 of module UDT4 to the udt CVS repository, changing 2 files.
2009-11-07 02:59:54 UTC by lilyco