|
From: Mac R. <re...@no...> - 2002-07-05 12:58:46
|
> Can some one help me in implementing a tcp/ip socket >using c. My ultimate goal is using minimum hardware >interface a microcontroller to the ethernet. > >As mentioned above i am very new to this field, all i >know is microcontroller. As a kickstart for this , i >would like to do a communication with pc-pc on the >existing ethernet layer what we have in our office. >I need to mention that i have never done socket >programming before. Please suggest me all the possible >ways for reaching my goal (any books for a beginner >like me ). I am going to take a slightly different approach than most, since you mentioned wanting to attach a microcontroller to the ethernet. If you meant an x86 CPU running Windows (which is the only platform supported by Dev-C++, as far as I know), then you should check out the books that have already been mentioned in other posts. If, instead, you are running on a tiny processor (8051, 6501, PIC, etc), you might be interested in the following very lightweight and very small TCP/IP stacks. Both are by the same guy, one is a little bit more capable than the other. WARNING : To the best of my knowledge, neither stack uses the standard "Berkeley Sockets" functional API, which is what both Windows and UNIX networking is usually based on. Learning to use either of these stacks WILL NOT help you in learning to program networking applications for Windows or UNIX. But if all you want is a tiny computer talking on the network, they might fit your requirements. (It is possible that the lwIP stack actually does support the "Berkeley Sockets" standard API, but they claim it is an optional component, and I don't know how closely they actually followed all of the specifications for that API.) http://www.sics.se/~adam/lwip/ http://dunkels.com/adam/uip/ Share and enjoy! Mac - _____________________________ /"\ Mac Reiter \ / ASCII Ribbon Campaign Nomadics, Inc. X Against HTML Mail re...@no... / \ (To join the campaign, simply use this in your signature.) |