1-amaliy mashg’ulot. Mavzu: tcp kliyent tarmoq dasturini amaliy o‘rganish. Ishning maqsadi


Download 1.94 Mb.
bet9/14
Sana07.02.2023
Hajmi1.94 Mb.
#1172646
1   ...   6   7   8   9   10   11   12   13   14
Bog'liq
Amaliyot ishlari

Ishni bajarish tartibi:
Ishni Eclipse yoki NetBeans IDE ishlab chiqarish muhitini yuklash bilan boshlaymiz. Buning uchun ish stolida turgan Eclipse yoki NetBeans IDE muhiti yorlig’ini sichqonchaning chap tomonini ikki marta bosib yuklaymiz. Bizning holatda NetBeans IDE muhiti ishga tushadi.
Quyidagi rasmda NetBeans IDE muhitining asosiy darchasi yuklangan.

Rasm 4.1. Net Beans IDE muhiti asosiy darchasi
Shundan so’ng «Fayl» menyusidan «Otkrыt proekt» bo’limi tanlanganda paydo bo’lgan darchadan «Talabaning_Ismi» proyektini tanlab “Otkrыtie proekta” tugmasi bosiladi.
So’ng ochilgan loyihaning «udp» paketi ustiga sichqonchaning o’ng tugmasi bir marta bosiladi, paydo bo’lgan kontekst menyudan «Novыy → Klass Java» tanlanadi.

Rasm 4.2. NetBeans IDE muhiti Yangi klass yaratish
“New Klass Java” darchasining «Imya klassa» maydoniga “Server” kiritilib
«Gotovo» tugmasi bosiladi.

Rasm 4.3. NetBeans IDE muhiti «New Klass Java» darchasi
Yaratilgan Server.java fayli ichiga UDP server Java kodi kiritiladi.

Rasm 4.4. NetBeans IDE muhiti Server.java fayli
Nazorat savollari

  1. UDP protokoli.

  2. IP tushunchasi.

  3. Port tushunchasi.

  4. Soket tushunchasi.

  5. Eclipse IDE muhiti.

  6. NetBeans IDE muhiti.

  7. java.net.* paketi.

  8. java.io.* paketi 9. DatagramSocket klassi. 10. DatagramPacket klassi.

Adabiyotlar

  1. Computer networking : a top-down approach / James F. Kurose, Keith W. Ross.—6th ed. 2013. by Pearson Education, Inc., publishing as Addison-Wesley.

  2. TCP/IP protocol suite / Behrouz A. Forouzan.—4th ed. Published by McGrawHill, a business unit of The McGraw-Hill Companies, Inc., 1221 Avenue of the Americas, New York, NY 10020. Copyright © 2010

  3. Java Network Programming, Fourth Edition by Elliotte Rusty Harold. 2014. Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol.


Download 1.94 Mb.

Do'stlaringiz bilan baham:
1   ...   6   7   8   9   10   11   12   13   14




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