ap
Dependencies: DnsQuery
Dependents: WizFi310_TCP_Echo_Server_Example
Fork of NetworkSocketAPI by
Diff: UDPSocket.h
- Revision:
- 73:968f7b32278f
- Parent:
- 72:6a8b52ee83ed
- Child:
- 74:ef2470ca328b
--- a/UDPSocket.h Tue Apr 05 05:40:43 2016 -0500 +++ b/UDPSocket.h Tue Apr 05 05:47:57 2016 -0500 @@ -55,6 +55,18 @@ \return the number of received bytes on success, negative on failure */ int recvfrom(const char *addr, uint16_t port, void *buffer, unsigned size); + + /** Register a callback on when send is ready + \param callback Function to call when send will succeed, may be called in + interrupt context. + */ + void attach_send(FuncPtr<void()> callback); + + /** Register a callback on when recv is ready + \param callback Function to call when recv will succeed, may be called in + interrupt context. + */ + void attach_recv(FuncPtr<void()> callback); }; #endif