mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-11-21 21:32:22 -08:00
socket: checkpoint on socket layer / win32 impl; plug into ipc driving
This commit is contained in:
1 parent
f781622a54
commit
e270def19f
5 files changed
+187
-17
No files matched your search
@@ -4,6 +4,9 @@
|
||||
#ifndef SOCKET_H
|
||||
#define SOCKET_H
|
||||
|
||||
////////////////////////////////
|
||||
//~ rjf: Socket Types
|
||||
|
||||
#if !defined(SOCKET_PORT)
|
||||
# define SOCKET_PORT 7423
|
||||
#endif
|
||||
@@ -40,6 +43,12 @@ struct SOCK_Endpoint
|
||||
};
|
||||
};
|
||||
|
||||
////////////////////////////////
|
||||
//~ rjf: Wakeup Hook Function Types
|
||||
|
||||
#define SOCK_WAKEUP_FUNCTION_DEF(name) void name(void)
|
||||
typedef SOCK_WAKEUP_FUNCTION_DEF(SOCK_WakeupFunctionType);
|
||||
|
||||
////////////////////////////////
|
||||
//~ rjf: Helpers
|
||||
|
||||
@@ -54,6 +63,7 @@ internal SOCK_Endpoint sock_endpoint_from_string(String8 address_and_port);
|
||||
#endif
|
||||
internal void sock_init(void);
|
||||
internal void sock_async_tick(void);
|
||||
internal void sock_set_wakeup_hook(SOCK_WakeupFunctionType *hook);
|
||||
|
||||
////////////////////////////////
|
||||
//~ rjf: @per_os_impl Sends
|
||||
|
||||
@@ -3,5 +3,6 @@
|
||||
|
||||
internal void sock_init(void){}
|
||||
internal void sock_async_tick(void){}
|
||||
internal void sock_set_wakeup_hook(SOCK_WakeupFunctionType *hook){}
|
||||
internal B32 sock_send(SOCK_Protocol protocol, SOCK_Endpoint endpoint, String8 data, U64 endt_us){return 0;}
|
||||
internal B32 sock_recv(Arena *arena, SOCK_Protocol *protocol_out, SOCK_Endpoint *endpoint_out, String8 *data_out, U64 endt_us){return 0;}
|
||||
Reference in new issue
Block a user