Your SlideShare is downloading. ×
Chapter16
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Saving this for later?

Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime - even offline.

Text the download link to your phone

Standard text messaging rates apply

Chapter16

95
views

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
95
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. 16. OTP Introduction Erlang TFT
  • 2. • OPT• Server – Basic• Server – Transaction• Server – Hot Code Swapping• Server – More Fun• gen_server• gen_server Template• my_bank.erl
  • 3. OTP• Open Telecom Platform : Application Framework• Behavior – 비기능적인 부분 ex) 무정지 기능 , Hot Code Swapping … )• Callback – 비즈니스 로직
  • 4. Server – Basic • Client Interface • Callback
  • 5. Server – Transaction • 서버 변경 • 콜백은 그대로 유지
  • 6. Server – Hot Code Swapping
  • 7. Server – More Fun
  • 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. gen_server Template
  • 10. my_bank.erl