CocoaHTTPServer does not start in swift project

771 views
Skip to first unread message

Tobias Traxel

unread,
Nov 10, 2014, 3:22:27 PM11/10/14
to cocoaht...@googlegroups.com
I want to write my server side code in swift. 
Therefore I created a new application project for OS X with swift in Xcode 6.1. Then I included the CocoaHTTPServer files from Core and Vendor and created a Bridging Header file. 

Despite several warnings the build succeeded. But after starting the Application, the Server is not accessible, although the log messages say that the server was started on port 61175 and bonjour advertising was also done. 

Doing the same steps with an Objective-C projects works fine. 


Any ideas why this happens? 

Thanks, Tobias

Ted Suzman

unread,
Nov 10, 2014, 5:27:30 PM11/10/14
to cocoaht...@googlegroups.com
> Any ideas why this happens?

Nope, but this project looks pretty inactive. You might want to check out https://github.com/swisspol/GCDWebServer

--
You received this message because you are subscribed to the Google Groups "CocoaHTTPServer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cocoahttpserv...@googlegroups.com.
To post to this group, send email to cocoaht...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cocoahttpserver/2de39327-94e0-4cd1-8fa1-91dd23782d54%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tobias Traxel

unread,
Nov 11, 2014, 3:27:28 PM11/11/14
to cocoaht...@googlegroups.com
I did the same test already with GCDWebServer and it works fine - but this project has support for WebSockets and the HTTPRoutigServer has a nicer handling of parameters in the URL, e.g. "/api/foo/:bar"
Reply all
Reply to author
Forward
0 new messages