duomark / erlangsp

Erlang Services Platform
BSD 3-Clause "New" or "Revised" License
88 stars 14 forks source link

Initial esp_service for tcp sockets #6

Closed jaynel closed 11 years ago

jaynel commented 11 years ago

Collected commit of initial attempt to handle asynch tcp sockets. Introduces the following concepts:

The modules esp_http, esp_tcp_async are earlier failed attempts which will be removed in the process of making an esp_epmd_service.

The esp_tcp_service hands incoming packets to a Client_Module that must be a behaviour implementing recv/1, recv_error/1 and recv/closed/1.

The interface will change to include the socket, a behaviour module will be added and other enhancements before esp_tcp_service can be considered experimentally implemented.