| 32 | // On POSIX: delegates to :: system calls from socket_posix.h |
| 33 | |
| 34 | int plat_socket(int domain, int type, int protocol) { |
| 35 | #ifdef FL_IS_WIN |
| 36 | return fl::socket(domain, type, protocol); |
| 37 | #else |
| 38 | return ::socket(domain, type, protocol); |
| 39 | #endif |
| 40 | } |
| 41 | |
| 42 | int plat_connect(int fd, const struct sockaddr *addr, socklen_t addrlen) { |
| 43 | #ifdef FL_IS_WIN |