Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

need example help #2

Open
kulasama opened this Issue Mar 11, 2012 · 4 comments

Comments

Projects
None yet
2 participants

i don't familiy with rust. would you provide some rust socket example for people. make them use this library more easy?

Owner

jdm commented Mar 11, 2012

There are a couple examples in the test code at the bottom of the source file, if that helps.

i try to follow test code.

and write a funtion like this.

39 result::chain(connect("localhost", 80 as u16)) {|s|
40 send(s,str::bytes("hello world"));
41 };

but compiler tell me that

http.rs:39:4: 39:50 error: cannot determine a type for this expression.

no such example for do a client socket work.

Owner

jdm commented Mar 12, 2012

I think if you get rid of the ; on line 40 it might work.

Owner

jdm commented Mar 12, 2012

Or line 41, I forget.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment