Sockets and How to Learn Them

Warning! Some information on this page is older than 3 years now. I keep it for reference, but it probably doesn't reflect my current knowledge and beliefs.

Oct 2009

Sockets and How to Learn Them

Everyone who wants to code transferring data across a network has to learn the concept and API of sockets, no matter if he works in Windows or Linux. I currently work with them again. The most popular tutorial to start with sockets is AFAIK Beej's Guide to Network Programming (and here is my mirror of the Polish translation: [html], [pdf]). I've recently came across another great document: Winsock Programmer's FAQ. I generally like FAQ-s as a good way to start learning about new topic and this one contains many valuable advices. I especially like the article Which I/O Strategy Should I Use? beacuse it explains what ways are available to do asynchronous I/O with sockets under Windows.

Each time I use sockets, I ask myself whether it has to be so much complicated, with all these states, errors, structures, flags etc. I'm afraid it always has to be this way as I've seen many implementations of wrappers and all looked very similar or almost the same as the original. The only way to simplify this API is to limit its functionality or to take it to the higher level of abstraction, like RPC. I believe writing network code is so hard because:

Comments (1) | Tags: networking | Author: Adam Sawicki | Share


2017-02-22 09:37:42
of the old story. However, when a long time did not remember I was shocked to hear the passage of time to do so is ruthless, hurried between, chaotic fleeting, for the face, scattered old year.A woman with a temperature of not only move others, also touched yourself, just, and aerial life, everyone has his own Xibei cold, you were always a weak woman, also has its own anguish worries, you also need understand the need to release, we needed the space. So tired, I allow you to withdraw the dispute, but must be able to protect themselves, but also allows you to temporarily go into hiding, but it must be spring, I think, the heart if relieved to well as ever, and only put down the burden, all the way Ting Feng faint, will go easier.You only live once, you can not live too tired, should be wonderful, live smart, live happy! Friendship is the wine, the more the more concentrated wine, love is a flower, the more beautiful the more care. Ye friendship, love worth mentioning, when own, cherish after losing, be yourself, but indulging in grief, but in the memories of the past, a person must be a new beginning, do not let the sadness mill happy factor, do not let the past you plug in sorrow hall. Do not say you love who you are, life is long, can not predict tomorrow, good terms, everyone has their own helplessness. Not live to miss yesterday, but to wait for hope.Girl, your tears are precious, so do not just cry, your training is very important, so it should not foul language, your youth is very short, so it should not decadent. Girl, you learn to be alone in the deserted corner can also be silent joy, girl, you learn to be strong, in the season AnShang cross-flow, also can Angtou sunny, girl, you learn to smile, time to give yourself a smiley face , not only can regulate mood, but also a way to treat yourself. Girl, although many times no one can understand your grief, but still believe that a warm, beautiful, trust in the presence of these words, even if you remember, the only way to learn distressed themselves in order to make a good wife, good to live.Eyes were tears become increasingly clear, heart pain due to become even more transparent, because life experiences become even more abundance. Cried, the pain had gone through, give yourself a sunny day, it should be understood, to a

Post comment

Nick *
Your name or nickname
Your contact information (optional, will not be shown)
Text *
Content of your comment
Calculate *
(* - required field)
STAT NO AD [Stat] [Admin] [STAT NO AD] [pub] [Mirror] Copyright © 2004-2017 Adam Sawicki
Copyright © 2004-2017 Adam Sawicki