]> rtime.felk.cvut.cz Git - frescor/fwp.git/commitdiff
Compilation fixes
authorMartin <molnam1@fel.cvut.cz>
Tue, 28 Oct 2008 16:23:04 +0000 (17:23 +0100)
committerMartin <molnam1@fel.cvut.cz>
Tue, 28 Oct 2008 16:23:04 +0000 (17:23 +0100)
fwp/lib/core/fwp_endpoint.c

index d9d87547c53d3d67168088725ab07f3dbdf9a04e..d45f571bf12904e93741968cfcb6cda228c9252b 100644 (file)
@@ -20,11 +20,13 @@ static fwp_endpoint_attr_t fwp_epoint_attr_default ={
 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;
@@ -130,7 +132,7 @@ int fwp_endpoint_attr_init(fwp_endpoint_attr_t *attr)
 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;
@@ -470,7 +472,7 @@ ssize_t fwp_recv(fwp_endpoint_d_t epointd,
        ssize_t len;
        fd_set fdset;
        
-/*     if (!fwp_endpoint_is_valid(epointd)) {
+       /*if (!fwp_endpoint_is_valid(epointd)) {
                errno = EINVAL;
                return -1;
        }*/
@@ -498,7 +500,7 @@ ssize_t fwp_recv(fwp_endpoint_d_t epointd,
                }
 
                /* 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;
        }
@@ -516,7 +518,7 @@ ssize_t fwp_recv(fwp_endpoint_d_t epointd,
  * 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;