aresch / pyenet

A python wrapper for the ENet library
BSD 3-Clause "New" or "Revised" License
53 stars 30 forks source link

Socket.send wrapper for enet_socket_send #3

Closed noway closed 7 years ago

noway commented 7 years ago

Would be nice to have that one too for calling enet_socket_send. The signature would be

cdef class Socket:
    def send(self, Address address, data):
noway commented 7 years ago

I have the patch for that (which works at least against enet 1.3.3), tell me if you interested in a PR

aresch commented 7 years ago

Yup, sure, send a PR.

noway commented 7 years ago

Would it be ok to combine it with the intercept callback patch? The game we are working on relies on those 2 features, and testing them separately is complicated because the game requires both of them at the same time

aresch commented 7 years ago

Yes, that would be fine.