Hi all, I'm writing a server that multiplexes a MySQL connection to several clients. Since the connection has to be shared, I can't fork(), I have to thread. This isn't a problem, except that when I accept() and assign a socket descriptor, the first thread runs fine, but the next thread simply grabs the descriptor (since it's shared) from the previous thread and starts doing all its writing to that socket. Any idea how to get around this? If there's any good example code, please let me know. Thanks, Rob -- [EMAIL PROTECTED] http://ota.pernet.net/ To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
- Fetch/wget/ftp: How to do a recursive ftp-g... Leif Neland
- Re: Fetch/wget/ftp: How to do a recursi... zaph0d
- Re: Fetch/wget/ftp: How to do a recursi... David O'Brien
- Re: Fetch/wget/ftp: How to do a recursi... Kris Kirby
- ftp is not fetch Daniel C. Sobral
- Re: ftp is not fetch Matthew Hunt
- Re: your mail Harold Gutch
- No Subject Peter Ciger
- No Subject Dirk-Willem van Gulik
- No Subject JP
- No Subject Rob King
- No Subject kvandel
- No Subject Mike Smith
- Re: fxp, xl driver question .. (routing) kvandel
- Re: fxp, xl driver question .. (routing... Mike Smith
- Re: fxp, xl driver question .. (rou... Mike Smith
- No Subject Ed Hall
- No Subject Nguyen Manh Tho
- No Subject Etienne De Bruin
- No Subject Ramiro Amaya