| 1 | MODULE = Punk PACKAGE = Punk::WebSocket | ||
| 2 | |||
| 3 | PROTOTYPES: DISABLE | ||
| 4 | |||
| 5 | # The upgrade handshake, in C (punk_wshandshake.h). Reached from the dispatcher | ||
| 6 | # once a websocket route's guards have passed: validate and answer the upgrade, | ||
| 7 | # then take the socket over and hand the connection to the handler. The codec | ||
| 8 | # and the connection object are already XS, so lib/Punk/WebSocket.pm is docs. | ||
| 9 | SV * | ||
| 10 | _dispatch(c, rec, env) | ||
| 11 | SV *c | ||
| 12 | SV *rec | ||
| 13 | SV *env | ||
| 14 | CODE: | ||
| 15 | 101 | RETVAL = punk_ws_dispatch(aTHX_ c, rec, env); | |
| 16 | OUTPUT: | ||
| 17 | RETVAL |