Beej's Guide to Network Programming

La semana pasada comencé las prácticas de la asignatura Servicios Telemáticos. Había que hacer un cliente de ECHO con winsockets. La verdad es que habiendo utilizado ya de antemano los winsockets, los sockets de Unix y la librería SDL_Net, no tuve muchos problemas en acordarme de como funcionaba la cosa... Si bien sigo pensando que la función ACCEPT no es intuitiva.

El caso es que desempolvé la carpeta de ANSI C y programación de sockets que tenía por casa. Y me encontré revisando los conceptos de la Beej's Guide to Network Programming. Bastante interesante, por cierto. Y pensaba leerme el libro de C de Kernighan y Ritchie, que me parece uno de los más interesantes. Pero buscando los archivos de la guía de Beej, me encontré con una guía para aprender C.

Genial. En serio. No se yo si sin saber nada de C aprenderás algo de la guía. Supongo que si, porque tiene muy buenas críticas. Pero si sabes C y quieres pegar un repasito sin que se te haga pesado, esta es la guía. La forma en la que está escrita es de trato directo con el lector y llena de comentarios y bromas.

1. Foreword

No point in wasting words here, folks, let's jump straight into the C code:
And they lived happily ever after. The End.


Ooooo! Prostrate yourself, mortal, in the face of The Specification!

Ok, maybe I'm being a little too overdramatic here. But I wanted to stress just mildly and subtly, if you might indulge me, that The Specification BWHAHAHA *THUNDERCLAP* (Sorry! Sorry!) is something you should spend time absorbing before your fingers touch the keyboard. Except for checking your mail and reading Slashdot, obviously. That goes without saying.


Right now, you might not know any of the pieces that you have at your disposal. That's ok.

The fastest way to learn them is to, right now, press the mouse to your forehead and say the password, "K&R2". That didn't work? Hmmm. There must be a problem with the system somewhere. Ok, we'll do it the old-school way: learning stuff by hand.


Excellent question, and we'll get to that right after these messages from our sponsor.


Welcome back to another installment of Beej's Guide to Whatever. When we met last we were talking about how to make use of pointers.


Another name for this section might have been, "Why can't I write a Photoshop clone in half an hour?"

Lots of people when they first start programming become disheartened because they've just spent all this effort to learn this whole programming business and what do they have to show for it: a little text-based program that prints a string that looks like it's some prehistoric throwback to 1979.


La verdad es que estoy repasando un montón de forma clara y entretenida. :D



Entradas populares