• Save
Chapter16
Upcoming SlideShare
Loading in...5
×
 

Chapter16

on

  • 170 views

 

Statistics

Views

Total Views
170
Views on SlideShare
170
Embed Views
0

Actions

Likes
0
Downloads
0
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Chapter16 Chapter16 Presentation Transcript

  • 16. OTP Introduction Erlang TFT
  • • OPT• Server – Basic• Server – Transaction• Server – Hot Code Swapping• Server – More Fun• gen_server• gen_server Template• my_bank.erl
  • OTP• Open Telecom Platform : Application Framework• Behavior – 비기능적인 부분 ex) 무정지 기능 , Hot Code Swapping … )• Callback – 비즈니스 로직
  • 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_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
  • gen_server Template
  • my_bank.erl