i am trying to toy with building a simple SMTP server.........
i am wondering if the approach i am taking is in the right direction and i am in need of a little advice/help.....
first what i have been able to do
1. i was able to create a ServerSocket and make it listen on port 25 for incoming traffic.
2. i was able to create a Socket based on a received connection
3. i was able to get the io streams from the socket
if i run the server, go to my ISP's web-based e-mail and send an e-mail to myself ([email protected]), my socket shows it is connected, but i can't/don't know how to read from the socket.
is what i am doing so far right/will it work??????
what kind of InputStream should i use to read from the Socket (DataInputStream, BufferedInputStream, InputStream, etc....)??????
how do i read from the input stream once i have established the stream(read(), readLine(), etc....)????
any help would be appreciated...
No one has replied yet! Why not be the first?
Sign in or Join us (it's free).