2012-08-15 20:34:28 -05:00
|
|
|
#[link(name="socketlib", vers="0.0")];
|
2012-08-16 16:30:14 -05:00
|
|
|
#[crate_type = "lib"];
|
2012-08-15 20:34:28 -05:00
|
|
|
|
|
|
|
mod socket {
|
|
|
|
|
|
|
|
export socket_handle;
|
|
|
|
|
2012-08-15 20:46:55 -05:00
|
|
|
struct socket_handle {
|
2012-08-15 20:34:28 -05:00
|
|
|
let sockfd: libc::c_int;
|
|
|
|
new(x: libc::c_int) {self.sockfd = x;}
|
|
|
|
drop { /* c::close(self.sockfd); */ }
|
|
|
|
}
|
|
|
|
}
|