@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9



Comments:

<0> good evening
<1> Kn00n - this ? ... Memo1.Perform(EM_LineScroll, 0, Memo1.Lines.Count);
<2> http://www.superherodb.com/
<2> i don't think i've ever heard of kazaa being used in the verbal sense
<3> This account has been suspended.
<3> Either the domain has been overused, or the reseller ran out of resources.
<4> hello everyone
<4> I show a window as modal from another form, how can I make it so that when I minimize that window the entire app will minimize?
<5> OnMinimize?
<4> I don't see that in the Events list
<4> that is a TApplication event
<2> create one?
<4> how?
<4> how can I trap the minimize button click in a window?
<2> capture the minimize message from the form, and then send that same command to the lower window (main form or application)
<4> the idea is great, but what is the message?



<4> that is sent to the form?
<2> can't remember
<2> you could always look it up
<4> I did, but I can't remember either :))
<5> WM_SYSBUTTON SC_MINIMIZE Ithionk
<4> ah, SC_MINIMIZE it is :)
<5> create a procedure in your modal form: procedure TCustomForm.WMSysCommand(var Message: TWMSysCommand);
<2> whats WM_SYSCOMMAND ?
<2> oh
<2> i ment, whats WM_SYSBUTTON
<5> if (Message.CmdType and $FFF0 = SC_MINIMIZE) then Application.WndProc(TMessage(Message))
<4> here it is: http://delphi.about.com/od/windowsshellapi/a/system_menu.htm
<4> thank you for the help
<6> When a client disconnect from TServerSocket is there a way that the server can know what connection number the client had?
<6> I don't want to use "ping" on 100 connections
<5> what is a connection number
<2> huh?
<2> wth does that mean?
<6> Socket.Connections[connection number]
<5> somebody is writing a really bad app.
<2> and what do you think is involved in "ping"ing them?
<6> TByte: Yeah I know, it's because you called me stupid yesterday. So I really need to write stupid apps
<5> I don't even remember that, but I was about to now :)
<5> LordEirik are you writing a socks server?
<6> Rahly: When I don't know who disconnected I must "ask" each client if it is still there
<6> TByte: It's a server, and it uses socket.. I guess
<5> LordEirik you are hardly making any sense here
<2> can't you just MySocket.Close For X := 0 to Socket.Connections.Count-1 do if Socket.Connections[X] = MySocket then begin { do some **** here } end; ?
<5> this channel has a lot of patience... people need to write coherent questions, with details, and hopefully in one message, not make us ask them back to **** the details out of them. . .
<6> If the client program is shut down with close procedure I can make it send "client number shutting down", but if you use taskmgr and terminate no ifo will be sent
<2> of course not
<7> the moment you try to send something to that client then, it'll fail
<2> Ending a Task in TaskMgr closes the program ungracefully
<5> rofl, sending from a client to server, a number that will help server close its connections
<7> so you'd still know .. delayed though
<6> I know that, I just wrote it
<5> that's just plain moron
<6> TByte: You misunderstand
<2> yeah TByte, you did
<6> I'm terrible at forumating good questions :(
<5> oh, pardon me :)
<2> LordEirik: i just told you how to do it
<5> oh well, I'll leave it. I'm completely confused.
<5> Nice to know somebody is still giving TServerSocket a try
<6> Rahly: I think what you wrote would help the server to know what number the connection have, wich it already know. But if client 50 disconnect, all clients > 50 will have theyr client number-1
<6> So I can tell all those they need to change the number they think they are. But I dont know client 50 disconnected, cause TServerSocket don't know who disconnect
<2> err
<2> why do they need to know their number? O_O
<6> Unless he is told who is leaving with a message
<6> So the server know who is sending messages?
<6> The client must send the number it think it is to the server so the server know who is talking
<2> but WHY? why does it need to know its place holder in the socket list?
<5> yep, I thought he was doing that.
<5> I think he means that the index in the array of sockets will change upon each disconnect
<2> the way you explained it TByte, was that he was sending its socket number from the client back to the server
<2> hes talking about the individual sockets on the server, knowing their place in the listen socket list, independant of the client
<5> yes, got that wrong. But the other bit I knew he was messing around with array index
<5> I know cause when I was a n00bie, I used to rely on it too
<6> I think this is so easy, but I'm messing it all up by talking more and more confusing
<5> LordEirik what do you use "client" number for?
<6> TByte: Yes! So you know how to do it oterwise. Tell me



<2> maybe your english isn't so good?
<5> do you have another list somewhere where you store something for the client?
<6> Rahly: Oh yeah, that to
<5> LordEirik as bad as your code is, you may simply want to use TStringList... and SocketId in each client.
<5> Add or Delete them using .Values[SocketId]
<6> My problem is not using a array, wich I can
<6> Just tell me, when a client send a message to a server. How can you see the client position in the srver socket?
<5> paste your code, and highlight with comments where the problem is
<2> i think you should let the naked midgets fix your code
<5> and by position you mean its index in the serversocket sockets list?
<6> yes
<5> you can store a .TAG value
<5> or loop through
<6> loop through?
<5> but I don't think its reliable, that number can change upon deletion or insertion
<5> yeah you can loop through your server socket list
<5> like Rahly said.
<2> lol, and message them to update their number
<6> Wich is what I'm doing now
<5> LordEirik you're having some design issues
<5> LordEirik paste some code
<6> I have no code
<5> I rewrite bits of it for you, and show you a better way
<2> hey oz
<8> hi guyz
<8> yo Rahly
<6> I've written this before and I'm not going to start writing the same problematic stuff again
<5> LordEirik let me explain something
<2> LordEirik: if you have done this before, whats the question about?
<5> the index where the clientsocket is within the serversocket is not stored in clients. The server has a list to manage the clients, but it won't store an index in each one because then you'd have to go through each client and update its index
<6> I know that
<6> Rahly: I'm not going to start writing the same problematic stuff again
<5> using that index for reference in any other structure is wrong
<2> oz: lips and ***holes
<6> ozbear: Me to
<8> Rahly: ummmmmmmmm...lips
<2> yeah you know, thats what hotdogs are made out of
<8> Rahly: I thought that was pig noses and chicken feet
<8> and sawdust
<2> oz: line from a cl***ic movie
<5> i thought it was belly buttons
<5> and brains
<2> depends on the country and state you live in
<5> Russia fozhizzle
<6> TByte: If you have a server iwth 10 clients connected. And one client send "Hello" to server, how can the server send "hello" back?
<5> you have a parameter in the event
<5> you just use that
<6> What you mean?
<5> don't you know anything??
<6> No, you alreaady told me I'm stupid. Let's try fixing some of my stupidens
<5> er i dont have internet components installed, so I can't remember
<2> LordEirik: Socket.Send();
<2> socket comes to you in the Event
<5> wait I got help :P
<5> there, Rahly got it
<2> Delphi 5 it sounds like
<6> yeah
<5> LordEirik did you understand this now?
<6> If I understood socket.send?
<5> no.
<2> TServerSocket has a "OnRead"
<6> Yes
<5> say you have an event, procedure Form1.ServerSocket1ClientRead(Socket: ....)
<6> Yes
<5> inside that event, when you receive "HELLO"
<5> you type Socket.SendLn('Hello back')
<6> I must use server.socket.connections[].sendtext
<5> GOT IT?
<5> No.
<5> Socket.SendText then.
<6> error


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #delphi
or
Go to some related logs:

python multiple-commands 1-line
#nhl
#goal
#windows
#politics
#beginner
babysitterfucker
#beginner
INZON CORPORATION (IZON.OB)
#beginner



Home  |  disclaimer  |  contact  |  submit quotes