File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,12 @@ iotjs_udpwrap_t* iotjs_udpwrap_from_handle(uv_udp_t* udp_handle) {
57
57
}
58
58
59
59
60
+ iotjs_udpwrap_t * iotjs_udpwrap_from_jobject (const iotjs_jval_t * judp ) {
61
+ iotjs_handlewrap_t * handlewrap = iotjs_handlewrap_from_jobject (judp );
62
+ return (iotjs_udpwrap_t * )handlewrap ;
63
+ }
64
+
65
+
60
66
uv_udp_t * iotjs_udpwrap_udp_handle (iotjs_udpwrap_t * udpwrap ) {
61
67
IOTJS_VALIDATED_STRUCT_METHOD (iotjs_udpwrap_t , udpwrap );
62
68
uv_handle_t * handle = iotjs_handlewrap_get_uv_handle (& _this -> handlewrap );
@@ -318,10 +324,10 @@ JHANDLER_FUNCTION(Send) {
318
324
319
325
// Close socket
320
326
JHANDLER_FUNCTION (Close ) {
321
- JHANDLER_DECLARE_THIS_PTR (udpwrap , udp_wrap );
327
+ JHANDLER_DECLARE_THIS_PTR (handlewrap , wrap );
322
328
DJHANDLER_CHECK_ARGS (0 );
323
329
324
- iotjs_handlewrap_close (udp_wrap , NULL );
330
+ iotjs_handlewrap_close (wrap , NULL );
325
331
}
326
332
327
333
You can’t perform that action at this time.
0 commit comments