File: lcmlite_ios.h

package info (click to toggle)
lcm 1.3.1+repack1-2.2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 2,796 kB
  • sloc: ansic: 16,184; java: 6,843; cs: 2,266; cpp: 1,594; python: 989; makefile: 348; xml: 252; sh: 59
file content (39 lines) | stat: -rw-r--r-- 744 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
 *  lcmlite_ios.h
 *  GLPad
 *
 *  Created by Edwin Olson on 8/15/10.
 *  Copyright 2010 Edwin Olson. All rights reserved.
 *
 */

#include <stdint.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <assert.h>

#include "lcmlite.h"

#ifndef _LCMLITE_IMPL_H
#define _LCMLITE_IMPL_H

struct lcmlite_impl
{
	struct sockaddr_in read_addr;
    struct sockaddr_in send_addr;
    int send_fd, read_fd;
};

int lcmlite_impl_init(struct lcmlite_impl *impl);

void lcmlite_impl_readloop(lcmlite_t *lcm, struct lcmlite_impl *impl);

void lcmlite_impl_transmit_packet(const void *_buf, int buf_len, void *user);

#endif