Saludo

Posted 11 July 2012 - 03:37 PM
Posted 12 July 2012 - 02:09 PM
Posted 12 July 2012 - 04:44 PM
Hola Fakedo0r. Ten paciencia, si alguien no te ha respondido no quiere decir que no sepa o que no quiera sino que no ha tenido el tiempo de responder.Por lo que veo la gente esta igual que yo, gracias de todos modos
Posted 12 July 2012 - 05:24 PM
Hola Fakedo0r. Ten paciencia, si alguien no te ha respondido no quiere decir que no sepa o que no quiera sino que no ha tenido el tiempo de responder.
Por lo que veo la gente esta igual que yo, gracias de todos modos
Este sitio está hecho por personas que saben como también las que quieren aprender, pero debes entender que ellos también tienen sus obligaciones y por que no... sus complicaciones.
Espera por favor a que alguien que tenga algo más de manejo y conocimiento sobre Indy responda.
Apenas ha pasado un día. Aquí las prisas y las respuestas de urgencias no están permitidas, se ayuda en la medida en que uno puede y cuando puede.
Te invito a conocer las normas de la comunidad y las sugerencias sobre los modos al postear.
Muchas gracias.
Saludos,
Posted 12 July 2012 - 06:57 PM
Por lo que veo la gente esta igual que yo, gracias de todos modos
6. Pequeños detalles que a veces se olvidan
Decir "por favor", "disculpa", y "gracias" son palabras que alientan a brindar mejores respuestas, Delphiaccess se construye con la colaboración altruista de muchas personas y no todos están disponibles las 24 horas. Se respetuoso y no desesperes si no recibes respuesta de forma rápida, te podemos asegurar que las respuestas llegarán de un momento a otro ya que cada día hay mas amigos registrados y por consiguiente más personas con ánimo de ayudar.
Posted 13 July 2012 - 04:11 PM
Posted 15 July 2012 - 02:06 PM
Procedure TFRM_Main.CMD_EscucharClick(Sender: TObject); Var Bindings: TIdSocketHandles; Begin Bindings := TIdSocketHandles.Create(ID_Sock); If ID_Sock.Active Then ID_Sock.Active := False Else Begin Bindings.Clear; Bindings.Add.IP := '127.0.0.1'; Bindings.Add.Port := StrToInt(TXT_Puerto.Text); ID_Sock.Bindings := Bindings; ID_Sock.Active := True; TXT_Log.Lines.Add('Server iniciado: 127.0.0.1'); TXT_Log.Lines.Add('Esperando conecciones...'); Bindings.Free; End; End; Procedure TFRM_Main.ID_SockConnect(AContext: TIdContext); Begin AContext.Data := TObject(AContext.Binding.Handle); LB_SockID.Items.Add(IntToStr(Integer(AContext.Data))); TXT_Log.Lines.Add('Nueva coneccion: ' + AContext.Binding.PeerIP + ':' + IntToStr(AContext.Binding.Port)); End; Procedure TFRM_Main.ID_SockDisconnect(AContext: TIdContext); Var sSock: String; I: Integer; Begin sSock := IntToStr(Integer(AContext.Data)); TXT_Log.Lines.Add('Se desconecto: ' + AContext.Binding.PeerIP + ':' + IntToStr(AContext.Binding.Port)); For I := LB_SockID.Count - 1 DownTo 0 Do If sSock = LB_SockID.Items.Strings[I] Then Begin LB_SockID.Items.Delete(I); AContext.Data := Nil; End; End; Procedure TFRM_Main.ID_SockExecute(AContext: TIdContext); Var sResponse: String; iSize: Integer; tArrRes: TStringList; Begin If AContext.Connection.Connected Then Begin iSize := AContext.Connection.IOHandler.ReadLongInt(True); sResponse := AContext.Connection.IOHandler.ReadString(iSize); TXT_Chat.Lines.Add(IntToStr(AContext.Binding.Handle) + ': ' + sResponse); End; End;
if LST_Clientes.Selected[LST_Clientes.ItemIndex] then begin Sock.Socket.Connections[LST_Clientes.ItemIndex].SendText(TXT_Texto.Text); end;
Posted 20 July 2012 - 12:47 PM
Posted 21 July 2012 - 12:32 PM
Var tArrCl: TList; Begin tArrCl := ID_Sock.Contexts.LockList; If LB_SockID.Selected[LB_SockID.ItemIndex] Then Begin TIdContext(tArrCl[LB_SockID.ItemIndex]).Connection.IOHandler.WriteBufferOpen; TIdContext(tArrCl[LB_SockID.ItemIndex]).Connection.IOHandler.Write(Integer(Length(TXT_Texto.Text))); TIdContext(tArrCl[LB_SockID.ItemIndex]).Connection.IOHandler.Write(TXT_Texto.Text); TIdContext(tArrCl[LB_SockID.ItemIndex]).Connection.IOHandler.WriteBufferClose; TXT_Chat.Lines.Add('Yo: ' + TXT_Texto.Text); TXT_Texto.Clear; End; ID_Sock.Contexts.UnlockList;
Posted 21 July 2012 - 12:59 PM
Posted 21 July 2012 - 01:03 PM
var MyIdContext: TidContext;
Posted 21 July 2012 - 02:38 PM
Posted 17 July 2013 - 09:19 PM