- คำนำ
- ทำความรู้จัก XMPP Protocal
-
ติดตั้ง XMPP เซิฟเวอร์
- ติดตั้ง java runtime environment (jre)
- ดาวน์โหลด OpenFire
- ติดตั้ง Openfire
- หมายเหตุ Error ระหว่างการติดตั้ง
-
ทดสอบ Online chat
- เพิ่ม user เข้าไปในระบบ
- ติดตั้งโปรแกรม pidgin
- chairoj ล้อกอิน pidgin
- ติดตั้งโปรแกรม gajim
- sumet ล้อกอิน gajim
- ให้ sumet แชทออนไลน์กับ chairoj
- สรุปยกแรก
-
สร้างระบบ Chat แบบ facebook
- enable proxy mod apache
- enable virtual host apache
- สร้าง virtual host igetweb-pc.dev
- ตรวจความพร้อมของ openfire
- สร้างแชทแบบ facebook ด้วย conversejs
- อธิบายโค้ด
- ติดตั้ง Openfire ด้วย mySQL
-
ปรับแต่ง openfire ให้ใช้ดาต้าเบส member ที่มีอยู่แล้ว
- เริ่มกระบวนการปรับแต่ง
- ความหมายของค่า config
- รวมปัญหาที่ผมประสบตอนทำ ปรับแต่ง openfire ให้ใช้ดาต้าเบส member ที่มีอยู่แล้ว
สร้างระบบ chat อย่าง facebook ด้วย XMPP โปรโตคอลและ Openfire
อ่านและทำได้ แม้เป็นเพียงผู้เริ่มต้น
Minimum price
$15.99
$20.00
You pay
Author earns
About
About the Book
เริ่มเรื่องจากผมต้องแล็บระบบ chat online นำไป implement ระบบให้กับบริษัทยักษ์ใหญ่บริษัทหนึ่ง หลังจากทำการค้นคว้าเลยได้รู้ว่ามันมีโปรโตคอลมาตรฐานที่ชื่อว่า XMPP ที่ถูกสร้างขึ้นมาเพื่อการนี้โดยเฉพาะ google hangout และ facebook chat ก็ใช้โปรโตคอลตัวนี้
XMPP มันมีองค์ประกอบ 2 ส่วน คือส่วนที่เป็น เซิฟเวอร์และไคลเอน ส่วนของเซิฟเวอร์นั้นมีโปรแกรม opensource ที่ชื่อ openfire ถูกสร้างไว้ให้นำมาใช้ฟรีๆอยู่แล้ว ส่วนไคลเอน ก็มีโปรแกรมฟรีมากมายให้ใช้งาน ทั้งแบบติดตั้งบนเดสก์ท้อป และจาวาสคริปต์เพื่อนำไปฝังไว้ในเว็บ เรียกได้ว่ามีของฟรีให้ใช้อยู่แล้ว เหลือเพียงแค่รู้วิธีเอาสองส่วนนี้มาประกอบกัน มันก็กลายเป็นระบบที่ใช้งานได้
การประยุกต์ใช้งาน นอกจากจะทำเป็น chat online แล้ว เรายังสามารถนำไปประยุกต์ทำระบบ private communication ภายในองค์กร, ห้องแชท, ระบบส่งไฟล์ออนไลน์, ระบบซัพพอร์ตแบบเรียลไทม์, ระบบประชุมออนไลน์, ระบบสื่อสารในเกมส์ออนไลน์ และอีกเยอะแยะมากมายปัญหาอย่างหนึ่งของการค้นคว้าบนอินเตอร์เน็ต คือ ข้อมูลมันกระจัดกระจายและไม่เป็นขั้นตอนที่เริ่มนับจากหนึ่ง ไปเจอข้อมูลระดับสูงก่อน ก่อนมาเจอข้อมูลพื้นฐาน เจอข้อมูลขาดๆหายๆไม่สมบูรณ์บ้าง เจอข้อมูลเก่าบ้าง ทำให้เราหลงทางและเสียเวลาไปค่อนข้างมาก
ผมจึงเขียนหนังสือเล่มนี้ขึ้นมาเพื่อเป็นทางตรงให้กับท่าน เริ่มจากข้อมูลพื้นฐานที่ควรจะต้องรู้ จนไปถึง implement ระบบที่มันใช้งานได้จริง พอท่านรู้ว่ามันใช้งานได้จริงๆแล้ว ท่านจะศึกษาแตกแขนงไปจากสิ่งที่รู้เดิม มันก็จะทำให้ความรู้นั้นยิ่งลึกและกว้าง เข้าไปอีก อีกทั้งไม่ไปผิดทางด้วย
ผมหวังเป็นอย่างยิ่งว่า หนังสือเล่มนี้มันจะก่อความรู้ความเข้าใจ ประโยชน์ จนไปถึงเป็นคลังเก็บไว้ในสมองไว้ใช้ในยามที่จะต้องใช้
ขอปัญญาจงเกิดแก่ท่าน
วัชรเมธน์ ชิษณุคุปต์ ศรีเนธิโรทัย
Feedback
Author
About the Author
เรียนจบมาทางด้านคอมพิวเตอร์ หลังจากนั้นเริ่มทำงานทางด้านเขียนโปรแกรม มาจนปัจจุบัน
ภาษาที่ถนัดคือ PHP, javascript, jQuery, CSS และโปรแกรมทางด้านฐานข้อมูล
Contents
Table of Contents
Get the free sample chapters
Click the buttons to get the free sample in PDF or EPUB, or read the sample online here
The Leanpub 60 Day 100% Happiness Guarantee
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms...
Earn $8 on a $10 Purchase, and $16 on a $20 Purchase
We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.
(Yes, some authors have already earned much more than that on Leanpub.)
Learn more about writing on Leanpub
Free Updates. DRM Free.
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Learn more about Leanpub's ebook formats and where to read them
Write and Publish on Leanpub
You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!
Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.
Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.