blob: 83b73e1948cfda3a5011076ab6404702bdbdf02d (
plain)
1
2
3
4
5
6
7
8
9
|
pub fn op_set_nodelay(
state: &mut OpState,
rid: ResourceId,
nodelay: bool,
) -> Result<(), AnyError> {
let resource: Rc<TcpStreamResource> =
state.resource_table.get::<TcpStreamResource>(rid)?;
resource.set_nodelay(nodelay)
}
|