Chengu Wang
2013-02-16 06:59:26 UTC
Hi all,
I'd like to implement the TCP over UDP, because I want to change TCP a
little. The implementation includes the three-way handshake,
retransmission, etc.
My TCP must have the basic interfaces as the original TCP does, i.e. a
my_tcp::acceptor class supporting bind, listen, accept, async_accept and
close, and a my_tcp::socket supporting bind, connect, async_connect, send,
async_send, receive, async_receive and close.
Of course I can write these two classes from scratch, but can I do it in
the framework of asio and reuse some codes of asio? What classes should I
implement and what do the inherit from?
Any help would be appreciated.
I'd like to implement the TCP over UDP, because I want to change TCP a
little. The implementation includes the three-way handshake,
retransmission, etc.
My TCP must have the basic interfaces as the original TCP does, i.e. a
my_tcp::acceptor class supporting bind, listen, accept, async_accept and
close, and a my_tcp::socket supporting bind, connect, async_connect, send,
async_send, receive, async_receive and close.
Of course I can write these two classes from scratch, but can I do it in
the framework of asio and reuse some codes of asio? What classes should I
implement and what do the inherit from?
Any help would be appreciated.
--
Best,
Chengu Wang
Best,
Chengu Wang