sorry, don't know should exact technical term problem statement title of thread might misleading/confusing. that's reason why not able search problem solution on google. okay, i'm developing simple social network users. want each user have own profile link. for example, if username of user 'xyz' profile link should ' http://example.com/user/xyz now how create "virtual" link? edit: okay, learned it's mod_rewrite , got similar question how dynamically rewrite url facebook routes php delicate matter. mod_rewrite can in beginning, after becoming mess , f*** rather help, when "big" software needs scalable. remembering "routes" not part of specific application, nomenclature "server" interprets request "client" , returns specific value "client" configuration of request. ie, "router" server. what recommend study http protocol, rest , on. this surely in many things, knowi...
i have client-server application in c#.net , using tcp socket. have used following function aggressive close of socket object. void closesocket(socket socket) { if(socket != null) { socket.shutdown(ocketshutdown.both); socket.close(); } } in normal condition function works , method returns 0 bytes returned read function. but whenever client process terminated taskmanager server program blocks read function of network stream. how can workaround read blocking function ? don't want use asyncread function because whole project uses blocking strategy write can't change async pattern. thanks, in advance. i'm assuming saying when connection isn't closed cleanly client, server can end blocking @ read indefinitely, if client has terminated abruptly. if so: yes, happens. if want use synchronous read methods, should use timeouts, in particular receivetimeout . if have multi-message protocol, may worthwhile adding ki...
Comments
Post a Comment