diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-02-27 21:28:40 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-02-27 21:28:40 +0100 |
commit | e2bcecad821f841ac40d0e0939f5805f8d142700 (patch) | |
tree | 9225c3b6d783f67043ac980bd01a8c13e8454fb4 /src/task.c | |
parent | 13306fc146b4839d511287f29df8572a80bf8914 (diff) | |
download | fastd-e2bcecad821f841ac40d0e0939f5805f8d142700.tar fastd-e2bcecad821f841ac40d0e0939f5805f8d142700.zip |
Use custom buffers instead of struct iovec
Diffstat (limited to 'src/task.c')
-rw-r--r-- | src/task.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -33,7 +33,7 @@ fastd_task* fastd_task_get(fastd_context *ctx) { return fastd_queue_get(&ctx->task_queue); } -static void fastd_task_put_send_type(fastd_context *ctx, const fastd_peer *peer, uint8_t packet_type, struct iovec buffer) { +static void fastd_task_put_send_type(fastd_context *ctx, const fastd_peer *peer, uint8_t packet_type, fastd_buffer buffer) { fastd_task_send *task = malloc(sizeof(fastd_task_send)); task->type = TASK_SEND; @@ -44,15 +44,15 @@ static void fastd_task_put_send_type(fastd_context *ctx, const fastd_peer *peer, fastd_queue_put(&ctx->task_queue, task); } -void fastd_task_put_send_handshake(fastd_context *ctx, const fastd_peer *peer, struct iovec buffer) { +void fastd_task_put_send_handshake(fastd_context *ctx, const fastd_peer *peer, fastd_buffer buffer) { fastd_task_put_send_type(ctx, peer, 1, buffer); } -void fastd_task_put_send(fastd_context *ctx, const fastd_peer *peer, struct iovec buffer) { +void fastd_task_put_send(fastd_context *ctx, const fastd_peer *peer, fastd_buffer buffer) { fastd_task_put_send_type(ctx, peer, 0, buffer); } -void fastd_task_put_handle_recv(fastd_context *ctx, const fastd_peer *peer, struct iovec buffer) { +void fastd_task_put_handle_recv(fastd_context *ctx, const fastd_peer *peer, fastd_buffer buffer) { fastd_task_handle_recv *task = malloc(sizeof(fastd_task_handle_recv)); task->type = TASK_HANDLE_RECV; |