base/ipc/netrpc/rtnetP.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
#ifndef __RTNET_RTNETP_H
00020
#define __RTNET_RTNETP_H
00021
00022
int soft_rt_bind(
int s,
00023
struct sockaddr *my_addr,
00024
int addrlen);
00025
00026
int soft_rt_close(
int s);
00027
00028
int soft_rt_recvfrom(
int s,
00029
void *buf,
00030
int len,
00031
unsigned int flags,
00032
struct sockaddr *from,
00033
int *fromlen);
00034
00035
int soft_rt_sendto(
int s,
00036
const void *buf,
00037
int len,
00038
unsigned int flags,
00039
struct sockaddr *to,
00040
int tolen);
00041
00042
int soft_rt_socket(
int domain,
00043
int type,
00044
int protocol);
00045
00046
int soft_rt_socket_callback(
int s,
00047
int (*func)(
int s,
void *arg),
00048
void *arg);
00049
00050 struct sock_t {
00051 int sock,
opnd;
00052 int tosend,
recvd;
00053 struct sockaddr addr;
00054 int addrlen;
00055 int (*callback)(
int sock,
void *
arg);
00056 void *
arg;
00057 char msg[
MAX_MSG_SIZE];
00058 };
00059
00060
#ifdef COMPILE_ANYHOW
00061
00062
00063
00064
int rt_socket(
int domain,
00065
int type,
00066
int protocol);
00067
00068
int rt_bind(
int s,
00069
struct sockaddr *my_addr,
00070
int addrlen);
00071
00072
int rt_close(
int s);
00073
00074
int rt_recvfrom(
int s,
00075
void *buf,
00076
int len,
00077
unsigned int flags,
00078
struct sockaddr *from,
00079
int *fromlen);
00080
00081
int rt_sendto(
int s,
00082
const void *buf,
00083
int len,
00084
unsigned int flags,
00085
struct sockaddr *to,
00086
int tolen);
00087
00088
int rt_socket_callback(
int s,
00089
int (*func)(
int s,
void *arg),
00090
void *arg);
00091
00092
#endif
00093
00094
#endif
Generated on Thu Nov 20 11:49:51 2008 for RTAI API by
1.3.8