Created
January 2, 2013 02:49
-
-
Save laheadle/4431732 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ffi.cdef[[ | |
typedef void* tpeer; | |
tpeer peer_create(int isServer); | |
int peer_broadcast(tpeer peerIn, char* msg, unsigned int size); | |
void peer_destroy(tpeer p); | |
/* timeout is milliseconds */ | |
int peer_select(tpeer peerIn, int timeout); | |
int peer_receive(tpeer peerIn, char* buf, int bufsize); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment