抱歉-我是xcode/cocoa/objective-c的新手...
我在努力理解哪里出了问题:
NSHost *host = [NSHost hostWithAddress:@"192.168.0.155"];
我收到两个错误“
No known class method for selector 'hostWithAddress:'
Receiver 'NSHost' for class message is a forward declaration
您能否帮助解释错误,以及如何完成创建一个指向192.168.0.155的NSHost实例的
有一些东西我不确定我是否理解正确,因此,我需要帮助:)
我见过这个:,
@Path("/resource")
public class Resource {
@Context
private HttpHeaders headers;
@GET
public void get(@Context UriInfo uriInfo) {
/* use headers or uriInfo variable here */
}
}
这是否意味着对于每个请求,被转换为“端点”的类都会创建一个单独的线程?因为,否则,标头信息将不准确..