|
Nugget
Bare-metal libraries and examples for the original PlayStation
|

Macros | |
| #define | CESTER_NO_SIGNAL |
| #define | CESTER_NO_TIME |
| #define | EXIT_SUCCESS 0 |
| #define | EXIT_FAILURE 1 |
| #define | PCDRV_NET_PORT "37373" |
| #define | PCDRV_NET_MSG "pcdrv-net echo 0123456789" |
| #define | PCDRV_NET_MSG_LEN (sizeof(PCDRV_NET_MSG) - 1) |
| #define | PCDRV_NET_POLLS 5000000 |
Functions | |
| CESTER_TEST (pcdrv_net_probe, test_instance, int r, fd;r=PCinit();cester_assert_int_eq(0, r);fd=PCopen("probe:net", 0, 0);cester_assert_cmp(fd, >=, 0);if(fd< 0) return;r=PCclose(fd);cester_assert_int_eq(0, r);) CESTER_TEST(pcdrv_net_refused | |
| cester_assert_int_eq (-1, fd) | |
Variables | |
| test_instance | |
| int | fd = PCopen("udp://127.0.0.1:" PCDRV_NET_PORT, 0, 0) |
| #define CESTER_NO_SIGNAL |
| #define CESTER_NO_TIME |
| #define EXIT_FAILURE 1 |
| #define EXIT_SUCCESS 0 |
| #define PCDRV_NET_MSG "pcdrv-net echo 0123456789" |
| #define PCDRV_NET_MSG_LEN (sizeof(PCDRV_NET_MSG) - 1) |
| #define PCDRV_NET_POLLS 5000000 |
| #define PCDRV_NET_PORT "37373" |
| cester_assert_int_eq | ( | - | 1, |
| fd | |||
| ) |
| CESTER_TEST | ( | pcdrv_net_probe | , |
| test_instance | , | ||
| int | r, | ||
| fd; | r = PCinit(); cester_assert_int_eq(0, r); fd = PCopen("probe:net", 0, 0); cester_assert_cmp(fd, >=, 0); if (fd < 0) return; r = PCclose(fd); cester_assert_int_eq(0, r); |
||
| ) |
| fd = PCopen("udp://127.0.0.1:" PCDRV_NET_PORT, 0, 0) |
| test_instance |