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


Download 1.94 Mb.
bet6/14
Sana07.02.2023
Hajmi1.94 Mb.
#1172646
1   2   3   4   5   6   7   8   9   ...   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.

Rasm 3.1. Net Beans IDE ishga tushish jarayoni
Quyidagi rasmda NetBeans IDE muhitining asosiy darchasi yuklangan.

Rasm 3.2. 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 “Talabaning_Ismi” loyihasi ustiga sichqonchaning o’ng tumasi bir marta bosiladi, paydo bo’lgan kontekst menyudan «Novыy → Klass Java» tanlanadi.

Rasm 3.3. NetBeans IDE muhiti Yangi klass yaratish
“New Klass Java” darchasining «Imya klassa» maydoniga “Client”, «Paket» maydoniga “udp” kiritilib «Gotovo» tugmasi bosiladi.

Rasm 3.4. NetBeans IDE muhiti «New Klass Java» darchasi
Yaratilgan udp paketi ichidagi Client.java fayliga UDP klient Java kodi kiritiladi.

Rasm 3.5. NetBeans IDE muhiti Client.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 AddisonWesley.

  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   2   3   4   5   6   7   8   9   ...   14




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