[ 
https://issues.apache.org/jira/browse/AVRO-1029?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13215353#comment-13215353
 ] 

menghaocheng commented on AVRO-1029:
------------------------------------

In the function "add_person()" in example/quicstop.c, after executing the 
following code:

if (avro_record_set(person, "ID", id_datum)
            || avro_record_set(person, "First", first_datum)
            || avro_record_set(person, "Last", last_datum)
            || avro_record_set(person, "Age", age_datum)
            || avro_record_set(person, "Phone", phone_datum)) {
                fprintf(stderr, "Unable to create Person datum structure\n");
                exit(EXIT_FAILURE);
        }

there is a record in "person". Now, I want to transmit this "person" by TCP 
socket. How to got the bytes stream of "person" from a schema?
                
> I want to transfer files beetwin server and client by Avro-c.
> -------------------------------------------------------------
>
>                 Key: AVRO-1029
>                 URL: https://issues.apache.org/jira/browse/AVRO-1029
>             Project: Avro
>          Issue Type: Test
>          Components: c
>    Affects Versions: 1.5.4
>         Environment: avro in C, linux in vmware.
>            Reporter: menghaocheng
>              Labels: test
>             Fix For: 1.5.4
>
>   Original Estimate: 168h
>  Remaining Estimate: 168h
>
>  I want to transfer files beetwin server and client by Avro-c. I know that 
> there must be two parts in this model, the server and the client. My question 
> is how to make the connection? Please forgive me as this maybe a simle 
> question, But I'm fresh in Avro, your simple worlds maybe helpful for me. If 
> only there is an example for it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to