Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

need example help #2

Open
kulasama opened this Issue · 4 comments

2 participants

kula Josh Matthews
kula

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

Josh Matthews
Owner
jdm commented

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

kula

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.

Josh Matthews
Owner
jdm commented

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

Josh Matthews
Owner
jdm commented

Or line 41, I forget.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.