server_http_on_windows_x32.go 588 B

12345678910111213141516
  1. //go:build windows && (386 || arm || mips || mipsle)
  2. package yu_hpsocket
  3. import "unsafe"
  4. func server_http_callback_OnWSMessageHeader(Sender, ConnID uintptr, Final bool, Reserved, OperationCode byte, Mask, BodyLen uintptr, BodyLen2 uintptr) HR {
  5. var j_Mask = make([]byte, 4)
  6. *((*uintptr)(unsafe.Pointer(&j_Mask))) = Mask
  7. switch j_item := _server_on_get(Sender); j_item._type {
  8. case _server_type_HttpServer:
  9. t := j_item.t.(*HttpServer)
  10. return t.onWSMessageHeader(t, Sender, ConnID, Final, Reserved, OperationCode, j_Mask, int64(BodyLen)|(int64(BodyLen2)<<32))
  11. }
  12. return HR_OK
  13. }