Abstract This paper discusses the setting of transceiver based on functional programming, and decouples differences between communication protocol network transmission from specific business implementation. In actual application, service implementation is set up. When changes, function can be realized only by modifying protocol, which improves readability program reduces its maintenance overhead