Advertisement

going from tcp to udp

Started by May 12, 2003 02:10 AM
0 comments, last by Metus 21 years, 8 months ago
hi. the last day i''ve been doing some network stuff with winsock and tcp. i did get the client/host send/receive work perfectly and i wanted to do something new. i''ve restructured the code and planned for udp implementation, but i haven''t done some udp before. what i know though is that udp don''t wait until the previous packet before the new one is sent. so i have to write my own ack-function right? í''ve also planned to imlpement threads for the networking.. like the main application will get the default thread and the server will get 2 threads; 1 for client login/verification and 1 for client send/receive. any suggestions?
Ethereal
> i wanted to do something new.
> ...
> any suggestions?

My usual suggestion is to avoid reinventing the wheel when you can, but if it''s the educational value you''re looking for then the following source code libraries will give you some. Those implement a reliability layer atop UDP.

ENet: http://enet.cubik.org
Airhook: http://airhook.org/

-cb

This topic is closed to new replies.

Advertisement