Commit 8df87257 authored by Jeremy Soller's avatar Jeremy Soller

Add listen

parent c5d9f763
......@@ -104,6 +104,11 @@ libc_fn!(unsafe bind(socket: c_int, address: *const sockaddr, _address_len: sock
Ok(0)
});
libc_fn!(unsafe listen(socket: c_int, backlog: c_int) -> Result<c_int> {
// TODO
Ok(0)
});
libc_fn!(unsafe recv(socket: c_int, buffer: *mut c_void, length: size_t, flags: c_int) -> Result<ssize_t> {
// XXX flags
if flags != 0 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment