|
-
Aug 22nd, 2000, 02:19 PM
#1
Thread Starter
Addicted Member
I was wondering if anybody could help me get started in creating an applet to connect to a mud. Should be similiar to chat. If anybody can help reply or email me at [email protected].
-
Aug 22nd, 2000, 02:37 PM
#2
Monday Morning Lunatic
Take a look at the Socket class, and hook it into a BufferedReader.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Aug 22nd, 2000, 03:10 PM
#3
Thread Starter
Addicted Member
Tried
I tried that but the socket won't connect to anything. here is the code:
String address;
Socket socket=null;
InputStreamReader isr=null;
BufferedReader in=null;
PrintWriter out=null;
address= "ros.wolfpaw.net";
//attempting to connect to server
try{
socket=new Socket(address, portnum);
isr=new InputStreamReader(socket.getInputStream());
in=new BufferedReader(isr);
out=new PrintWriter(socket.getOutputStream(),true);
}
catch(IOException e){
System.err.println("Error: Could not create stream socket " + e.getMessage());
System.exit(1);
}
-
Aug 22nd, 2000, 03:21 PM
#4
Monday Morning Lunatic
Hang on, I'll search out a chat example and email it to you.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Aug 22nd, 2000, 03:24 PM
#5
Thread Starter
Addicted Member
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
|