• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Writing message to IRC server

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I'm new on this forum so I will do a small introduction, I'm Jimme van der Meer, I'm from Holland, studying software engineering and I'm looking for abit of help on this app.

I want to make a simple chat client to put on my website as an Applet that is using IRC protocols.
The connection is established and I'm in the IRC server>channel but I can't figure out how to send messages to the server.

Now the first question is: I've read about the printwriter to send messages but is that necessary when I got a BufferedWriter already?
Second question: I know that I'll have to add threads to this app, I know how they work for the most part, but first I want to test if I'm able to send a message to the server, I hope this is possible without threads?
Last but not least: I'm able to write messages to my own computer as local server but to IRC seems tickier, so how the hell do I send a message to the IRC sever?

Here's the start of my source code, I'll hope somebody is able to help.
Thanks in advance Jimme



I tried googling it and I've read the book head first java but there are not enough examples on how to write a message to an IRC server
 
I was born with webbed fish toes. This tiny ad is my only friend:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic