Commit Graph
15 Commits
Author SHA1 Message Date
Sunguk Lee c6d68d9e87 vita: Reduce TCPv4_MSS to 512 to avoid setsockopt error
`setsockopt` with 536 returned EINVAL error.
SCE would use simple value for limit
2022-01-24 22:19:09 -06:00
Sunguk Lee 4a4a23c7c4 vita: Replace select to poll
now newlib support [this][1]

[1]: https://github.com/vitasdk/newlib/pull/70
2022-01-24 22:16:59 -06:00
Sunguk Lee 6195007bf3 Add missing poll header parts of the VITA 2020-10-23 11:29:02 +09:00
Sunguk Lee 021a1b23e9 vita: Enable nonblock TCP socket 2019-11-04 02:47:41 +09:00
Sunguk Lee a5c1054742 vita: Remove more vita specific branches 2019-10-05 20:07:41 +09:00
Sunguk Lee 31a1384379 vita: Apply newlib changes
no more need to define `TCP_NODELAY` and `sockaddr_in6` parts
2019-10-05 04:43:28 +09:00
Sunguk Lee 9972440607 vita: Reduce vita custom defines 2019-08-14 01:25:08 +09:00
Sunguk Lee 787700ca50 vita: Use getaddrinfo instead gethostbyname 2019-08-14 01:25:04 +09:00
Sunguk Lee d971e3bacc Revert "vita: Redefine network error codes"
This reverts commit 93707b42e9.
2019-02-17 23:58:33 +09:00
Sunguk Lee 93707b42e9 vita: Redefine network error codes
temporary patch until merge vitasdk/newlib#38
2018-07-22 06:01:46 +09:00
Sunguk Lee 53352c1a8e vita: No more need redefine INADDR_ANY 2018-07-22 05:54:32 +09:00
Sunguk Lee 41248aad1e Add NEED_ALLOCA macro
since a9438d1f5e, project introduced alloca calls.
but in [BSD manpage][1], this function is machine and compiler dependent.
also if use newlib or glibc, this function requires `alloca.h` unlike bsd
system.

this patch just revert alloca call except MSC case.

[1]: https://www.freebsd.org/cgi/man.cgi?alloca
2018-07-22 03:17:00 +09:00
Sunguk Lee 5ab67fb864 vita: Increate thread stack size
readsolomon require large stack memory for the [decode][1]

lazy calucation: 0x105f9
  - dataDecodeMatrix: 255 * 255
  - subShards: 255 * 4
  - outputs:  255 * 4

Fixes #27

[1]: https://github.com/moonlight-stream/moonlight-common-c/blob/9bf8d36/reedsolomon/rs.c#L500-L502
2017-05-05 18:53:16 +09:00
Sunguk Lee a24e29c9ad Remove defines of EVP_CIPHER_CTX_new and EVP_CIPHER_CTX_free
These functions defined since 0.9.8b
2017-05-05 16:26:57 +09:00
Sunguk Lee ba27e97698 Add vita environment (#22)
* vita: initial port

* vita: implement events, enable input thread

* vita: gethostbyname

* vita: Enable audio

* vita: Fix thread crash on discoonect process

* vita: Handle cannot create thread

* vita: now use newlib's socket apis

* vita: Refactoring for moonlight-stream/moonlight-common-c

* Fix review things

https://github.com/moonlight-stream/moonlight-common-c/pull/22#pullrequestreview-2436093

- vita may not support IPv6; so add LC_ASSERT them.
- define inet_ntop to sceNetInetNtop
- guard about failure of sceKernelCreateMutex or sceKernelCreateCond
- remove meanless macros

https://github.com/moonlight-stream/moonlight-common-c/pull/22#pullrequestreview-2444677

- !*mutex to *mutex
- remove useless LC_ASSERT then change to use inet_ntop
  in vita system not defined `sockaddr_in6`, so just use `sockaddr_in` instead this.

https://github.com/moonlight-stream/moonlight-common-c/pull/22#pullrequestreview-2445642

- define sin6_addr
2016-10-05 16:43:33 -07:00