Opened 14 years ago

Last modified 13 years ago

#2565 reopened Bugs

posix_chat_client.cpp does not work on mac os x

Reported by: kyle.tarplee@… Owned by: chris_kohlhoff
Milestone: To Be Determined Component: asio
Version: Boost 1.37.0 Severity: Problem
Keywords: Cc: mikhailberis@…

Description

I am using Mac OS X 10.5 (Leopard), macbook pro and this example seems to be broken.

when I run

./chat_server 12345

and in a different terminal on the same machine run

./posix_chat_client localhost 12345

the client exits immediately (instead of accepting input to send to the server which echos is back).

the chat_client works fine however. Note that the source is in boost/libs/asio/examples/chat

In similar code I get the error "Operation not supported"

This same code works on linux (ubuntu 4.3.2) just fine. Same build flags.

Change History (4)

comment:1 by Dean Michael Berris, 13 years ago

Cc: mikhailberis@… added

This is expected since Mac OS X doesn't explicitly support standard posix stream descriptors that support asynchronous IO IIUC. Does the example still compile now that the define guards have been put into the example?

comment:2 by anonymous, 13 years ago

Resolution: fixed
Status: newclosed

Actually the with snow leopard (mac os 10.6) my use case works now. I presume posix_chat_client.cpp will work as well. So I guess it was a mac os 10.5 issue that has been resolved.

comment:3 by chris_kohlhoff, 13 years ago

Resolution: fixed
Status: closedreopened

Reopening, because at some point I do want to make this work with older versions of Mac OS X.

comment:4 by chris_kohlhoff, 13 years ago

Milestone: Boost 1.38.0To Be Determined
Note: See TracTickets for help on using tickets.