PSPSDK 2024-12-16
Loading...
Searching...
No Matches
pspnet_inet.h
Go to the documentation of this file.
1/*
2 * PSP Software Development Kit - https://github.com/pspdev
3 * -----------------------------------------------------------------------
4 * Licensed under the BSD license, see LICENSE in PSPSDK root for details.
5 *
6 * pspnet_inet.h - PSP networking libraries.
7 *
8 * Copyright (c) 2005 Marcus R. Brown <mrbrown@0xd6.org>
9 *
10 * Portions based on PspPet's wifi_03 sample code.
11 *
12 */
13
14#ifndef PSPNET_INET_H
15#define PSPNET_INET_H
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
21#include <sys/socket.h>
22#include <sys/select.h>
23
32
37int sceNetInetAccept(int s, struct sockaddr *addr, socklen_t *addrlen);
42size_t sceNetInetRecv(int s, void *buf, size_t len, int flags);
43size_t sceNetInetRecvfrom(int s, void *buf, size_t flags, int, struct sockaddr *from, socklen_t *fromlen);
44size_t sceNetInetSend(int s, const void *buf, size_t len, int flags);
45size_t sceNetInetSendto(int s, const void *buf, size_t len, int flags, const struct sockaddr *to, socklen_t tolen);
46int sceNetInetSetsockopt(int s, int level, int optname, const void *optval, socklen_t optlen);
47int sceNetInetShutdown(int s, int how);
50int sceNetInetGetErrno(void);
51int sceNetInetGetpeername(int s, struct sockaddr *name, socklen_t *namelen);
52int sceNetInetGetsockname(int s, struct sockaddr *name, socklen_t *namelen);
53ssize_t sceNetInetSendmsg(int s, const struct msghdr *msg, int flags);
55
56#ifdef __cplusplus
57}
58#endif
59
60#endif /* PSPNET_INET_H */
u32 flags
Definition fixup.c:1
int sceNetInetSetsockopt(int s, int level, int optname, const void *optval, socklen_t optlen)
size_t sceNetInetSendto(int s, const void *buf, size_t len, int flags, const struct sockaddr *to, socklen_t tolen)
int sceNetInetGetsockname(int s, struct sockaddr *name, socklen_t *namelen)
int sceNetInetTerm(void)
int sceNetInetAccept(int s, struct sockaddr *addr, socklen_t *addrlen)
int sceNetInetInit(void)
int sceNetInetGetsockopt(int s, int level, int optname, void *optval, socklen_t *optlen)
size_t sceNetInetRecv(int s, void *buf, size_t len, int flags)
int sceNetInetClose(int s)
ssize_t sceNetInetRecvmsg(int s, struct msghdr *msg, int flags)
int sceNetInetGetErrno(void)
int sceNetInetConnect(int s, const struct sockaddr *serv_addr, socklen_t addrlen)
int sceNetInetShutdown(int s, int how)
size_t sceNetInetRecvfrom(int s, void *buf, size_t flags, int, struct sockaddr *from, socklen_t *fromlen)
size_t sceNetInetSend(int s, const void *buf, size_t len, int flags)
int sceNetInetSelect(int n, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct SceNetInetTimeval *timeout)
int sceNetInetBind(int s, const struct sockaddr *my_addr, socklen_t addrlen)
int sceNetInetSocket(int domain, int type, int protocol)
int sceNetInetListen(int s, int backlog)
int sceNetInetGetpeername(int s, struct sockaddr *name, socklen_t *namelen)
ssize_t sceNetInetSendmsg(int s, const struct msghdr *msg, int flags)
char * name
Definition pspsysmem_kernel.h:4
struct _uidControlBlock * type
Definition pspsysmem_kernel.h:2
short int s[8]
Definition psptypes.h:8
float x
Definition psptypes.h:0
uint32_t socklen_t
Definition socket.h:75
This struct is needed because tv_sec size is different from what newlib expect Newlib expects 64bits ...
Definition pspnet_inet.h:28
uint32_t tv_usec
Definition pspnet_inet.h:30
uint32_t tv_sec
Definition pspnet_inet.h:29
Definition socket.h:261
Definition socket.h:166