Your SlideShare is downloading. ×
16. OTP Introduction                Erlang TFT
• OPT• Server – Basic• Server – Transaction• Server – Hot Code Swapping• Server – More Fun• gen_server• gen_server Templat...
OTP•   Open Telecom Platform : Application Framework•   Behavior – 비기능적인 부분             ex) 무정지 기능 , Hot Code Swapping … )...
Server – Basic            •    Client Interface            •    Callback
Server – Transaction               •   서버 변경               •   콜백은 그대로 유지
Server – Hot Code Swapping
Server – More Fun
gen_server                                     http://www.erlang.org/doc/man/gen_server.html1.Callback Module Name     my_...
gen_server Template
my_bank.erl
Upcoming SlideShare
Loading in...5
×

Chapter16

122

Published on

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
122
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "Chapter16"

  1. 1. 16. OTP Introduction Erlang TFT
  2. 2. • OPT• Server – Basic• Server – Transaction• Server – Hot Code Swapping• Server – More Fun• gen_server• gen_server Template• my_bank.erl
  3. 3. OTP• Open Telecom Platform : Application Framework• Behavior – 비기능적인 부분 ex) 무정지 기능 , Hot Code Swapping … )• Callback – 비즈니스 로직
  4. 4. Server – Basic • Client Interface • Callback
  5. 5. Server – Transaction • 서버 변경 • 콜백은 그대로 유지
  6. 6. Server – Hot Code Swapping
  7. 7. Server – More Fun
  8. 8. gen_server http://www.erlang.org/doc/man/gen_server.html1.Callback Module Name my_bank2.Write Interface Routines start(), stop(), new_account(Who), deposit(Who, Amount), withdraw(Who, Amount)3.Write Callback Routines init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3
  9. 9. gen_server Template
  10. 10. my_bank.erl

×