Modify

Opened 9 years ago

Last modified 8 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.

Attachments (0)

Change History (4)

comment:1 Changed 8 years ago by Dean Michael Berris

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 Changed 8 years ago by anonymous

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 Changed 8 years ago by chris_kohlhoff

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 Changed 8 years ago by chris_kohlhoff

Milestone: Boost 1.38.0To Be Determined

Modify Ticket

Change Properties
Set your email in Preferences
Action
as reopened The owner will remain chris_kohlhoff.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.