For an idea of how big an undertaking, google for & layer OSI (open systems interconnect) and look up all the rfc's the article you choose mentions, the read through all these several times going through each layer in detail so you undestand how it all 'interconnects'. Happy reading (there is a bit of it) JJ -----Original Message----- From: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of William Chops Westfield Sent: Thursday, 22 January 2004 4:04 AM To: PICLIST@MITVMA.MIT.EDU Subject: Re: [PIC:] SMTP, POP3 ? On Wednesday, Jan 21, 2004, at 06:00 US/Pacific, MSullivan wrote: > specifically.. how to negotiatate (or figure out how to negotiate) the > connection to the mail server ? > I have a PIC board with an 802.11b wireless card on it, and I have a > wireless access point router connected to the internet through a cable > modem. I can communicate to the PIC card using a PC with a wireless > card > on it, that goes through the access point (with TCP/IP). How do I > negotiate the connection with the mail sever, from the PIC > board...through > the router? Will I have to send out IP addresses, passwords > etc...... and > what responses will I get and need to respond to? How do I determine > that? I'm sorry, but you need to back up a few steps and learn a bit and learn how the internet "works" at a basic level, especially with respect to the layering of protocols. An SMTP client does not "negotiate a connection" with a mail server; it simply opens a TCP connection, using whatever tcp APIs are provided. the TCP layer handles the negotiation and "connection." A TCP connection does not 'work through a router"; it sends IP packets using internal APIs. The IP layer handles (more or less, using additional protocols like ICMP or ARP) figuring out which router to use. Writing SMTP code is easy; a nice ascii dialog. writing a complete internet stack containing all the layers needed to communicate over an 802.11b card is a major undertaking... BillW -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads