struct fwp_endpoint{
/** Fwp endpoint attributes */
fwp_endpoint_attr_t attr;
+ /* Vres this fwp endpoint is bound to */
+ fwp_vres_d_t vresd;
/** For send enpoint it contains destination address for
* receive endpoint it is filled with the msg source address
*/
struct fwp_sockaddr peer;
- /** Dource/destination port */
+ /** Source/destination port */
unsigned int port;
/** Destination node */
int node;
int fwp_send_endpoint_create(unsigned int node,
unsigned int port,
fwp_endpoint_attr_t *attr,
- fwp_endpoint_d_t *epointp)
+ fwp_endpoint_d_t *epointd)
{
struct sockaddr_in *addr;
fwp_endpoint_t *fwp_epoint;
ssize_t len;
fd_set fdset;
-/* if (!fwp_endpoint_is_valid(epointd)) {
+ /*if (!fwp_endpoint_is_valid(epointd)) {
errno = EINVAL;
return -1;
}*/
}
/* Check client TCP sockets */
- len = fwp_recv_conn(endpoint, buffer, buffer_size);
+ len = fwp_recv_conn(fwp_epoint, buffer, buffer_size);
if (len)
return len;
}
* On error, -1 is returned and errno is set appropriately.
*
*/
-int fwp_send(fwp_endpoint_d_t *epointd,const void *msg, const size_t size,
+int fwp_send(fwp_endpoint_d_t epointd,const void *msg, const size_t size,
int flags)
{
fwp_endpoint_t *fwp_epoint = epointd;