-
June 13th, 2005, 01:33 AM
#1
Java and sockets help
I want to write something like an IRC or chat client in Java (using the ASCII protocol).
Should I be using a BufferedReader of an InputStream of a Socket to read data?
The main reason why i don't know how to send data through a socket is because i dont know how to send bytes or words with Java. Can someone provide an example please?
-
June 13th, 2005, 07:57 PM
#2
Re: Java and sockets help
Hungarian notation, reinterpreted? http://www.joelonsoftware.com/articles/Wrong.html
-
June 14th, 2005, 12:33 AM
#3
Re: Java and sockets help
Originally Posted by cma
Thanks, those are helpful, but i can't seem to find or google any examples of bytes/words/dwords sending in Java. Are there any handy tutorials lying around for that?
-
June 14th, 2005, 09:17 AM
#4
Re: Java and sockets help
There are a few old forum posts that deals with transferring data over sockets, such as: http://www.codeguru.com/forum/showthread.php?t=283663
Transferring data over a network is not that much different from reading/writitng data to a file.
Hungarian notation, reinterpreted? http://www.joelonsoftware.com/articles/Wrong.html
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|