server_http_on_windows_x64.go 589 B

123456789101112131415161718
  1. //go:build windows && (amd64 || arm64 || ppc64 || ppc64le || s390x || mips64 || mips64le)
  2. package yu_hpsocket
  3. import (
  4. "unsafe"
  5. )
  6. func server_http_callback_OnWSMessageHeader(Sender, ConnID uintptr, Final bool, Reserved, OperationCode byte, Mask uintptr, BodyLen int64) HR {
  7. var j_Mask = make([]byte, 4)
  8. *((*uintptr)(unsafe.Pointer(&j_Mask))) = Mask
  9. switch j_item := _server_on_get(Sender); j_item._type {
  10. case _server_type_HttpServer:
  11. t := j_item.t.(*HttpServer)
  12. return t.onWSMessageHeader(t, Sender, ConnID, Final, Reserved, OperationCode, j_Mask, BodyLen)
  13. }
  14. return HR_OK
  15. }