— Scott McNealy, Sun Microsystems Chairman, President and ceo


participants’ messages, you get to load and



Download 40,57 Mb.
Pdf ko'rish
bet433/555
Sana26.05.2022
Hajmi40,57 Mb.
#609235
1   ...   429   430   431   432   433   434   435   436   ...   555
Bog'liq
Head First Java (Kathy Sierra, Bert Bates) (z-lib.org)


participants’ messages, you get to load and 
play a beat pattern simply by clicking the 
message in the incoming messages area.
In this chapter we’re going to learn what it 
takes to make a chat client like this. We’re 
even going to learn a little about making a 
chat server. We’ll save the full Beat Box Chat 
for the Code Kitchen, but in this chapter you 
will write a Ludicrously Simple Chat Client and 
Very Simple Chat Server that send and receive 
text messages.
clicking on a received message 
loads the pattern that went 
with it
Type a message and 
press the sendIt 
button 
to send your message 
AND your current 
beat 
pattern
You can have completely 
authentic, intellectually 
stimulating chat 
conversations. Every 
message is sent to all 
participants.
Send your message to the server


networking 
and
threads
you are here
4
473
Why am I 
here? Don’t 
expect ME to 
answer that.
Why am I 
here? Don’t 
expect ME to 
answer that.
Why am I 
here? Don’t 
expect ME to 
answer that.
The Client has to know 
about the Server.
The Server has to know 
about ALL the Clients.
Chat Program Overview
1
Client connects to the server
2
The server makes a 
connection and adds the client 
to the list of participants
3
Another client connects
4
Client A sends a message to 
the chat service
Client A
Client B
Client C
Server
there are currently 
3 participants in 
this chat session: 
Client A, Client B 
and Client C

Download 40,57 Mb.

Do'stlaringiz bilan baham:
1   ...   429   430   431   432   433   434   435   436   ...   555




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish