mirror of
https://github.com/Maschell/dynamic_libs.git
synced 2024-11-22 12:29:16 +01:00
Merge pull request #24 from Crayon2000/socket_functions
Add more socket functions
This commit is contained in:
commit
4d40ad2ef3
@ -44,6 +44,8 @@ EXPORT_DECL(s32, sendto, s32 s, const void *buffer, s32 size, s32 flags, const s
|
||||
EXPORT_DECL(s32, setsockopt, s32 s, s32 level, s32 optname, void *optval, s32 optlen);
|
||||
EXPORT_DECL(char *, inet_ntoa, struct in_addr in);
|
||||
EXPORT_DECL(s32, inet_aton, const char *cp, struct in_addr *inp);
|
||||
EXPORT_DECL(const char *, inet_ntop, s32 af, const void *src, char *dst, s32 size);
|
||||
EXPORT_DECL(s32, inet_pton, s32 af, const char *src, void *dst);
|
||||
EXPORT_DECL(s32, socketlasterr, void);
|
||||
|
||||
EXPORT_DECL(s32, NSSLWrite, s32 connection, const void* buf, s32 len,s32 * written);
|
||||
@ -88,6 +90,8 @@ void InitSocketFunctionPointers(void){
|
||||
OS_FIND_EXPORT(nsysnet_handle, setsockopt);
|
||||
OS_FIND_EXPORT(nsysnet_handle, inet_ntoa);
|
||||
OS_FIND_EXPORT(nsysnet_handle, inet_aton);
|
||||
OS_FIND_EXPORT(nsysnet_handle, inet_ntop);
|
||||
OS_FIND_EXPORT(nsysnet_handle, inet_pton);
|
||||
|
||||
OS_FIND_EXPORT(nsysnet_handle, NSSLWrite);
|
||||
OS_FIND_EXPORT(nsysnet_handle, NSSLRead);
|
||||
|
@ -110,6 +110,8 @@ extern s32 (* NSSLCreateConnection)(s32 context, const char* host, s32 hotlen,s3
|
||||
|
||||
extern char * (*inet_ntoa)(struct in_addr in);
|
||||
extern s32 (*inet_aton)(const char *cp, struct in_addr *inp);
|
||||
extern const char * (*inet_ntop)(s32 af, const void *src, char *dst, s32 size);
|
||||
extern s32 (*inet_pton)(s32 af, const char *src, void *dst);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user