Autor Beitrag
Christian V.
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 311

Win Xp Prof
Turbo Delphi 2005
BeitragVerfasst: Sa 05.02.05 20:12 
[meta]10057[/meta]
Hallo,
Ich bin ein Irc-Bot am Proggen, aber wenn ich connecte kommt die Fehlermeldung "Socket Fehler #10057, Socket ist nicht vebunden."
Was habe ich da falsch oder eben nicht geproggt?
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
procedure TForm1.Button1Click(Sender: TObject);
begin
irc.Host:=edit1.text; //als host: irc.fu-berlin.de
irc.Nick:=edit2.Text; //als nick: irgenwas
irc.Port:=strtoint(edit3.Text); //als port: 8080 <- muss der etwas bestimmtes sein?
irc.connect;
end;

Kann mir jemand gelfen?
invulnerabilis

//edit: Was ist denn überhaupt der Socket?


Zuletzt bearbeitet von Christian V. am Sa 05.02.05 20:21, insgesamt 1-mal bearbeitet
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Sa 05.02.05 20:17 
Normalerweise ist der Port bei IRC 6667. Probier das mal aus!

_________________
Steht der Bauer im Gemüse, hat er später grüne Füße.
Christian V. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 311

Win Xp Prof
Turbo Delphi 2005
BeitragVerfasst: Sa 05.02.05 20:20 
geht auch nicht, immer noch derselbe fehler.
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Sa 05.02.05 20:24 
Benutzt du die Indy Komponenten??

_________________
Steht der Bauer im Gemüse, hat er später grüne Füße.
Christian V. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 311

Win Xp Prof
Turbo Delphi 2005
BeitragVerfasst: Sa 05.02.05 20:25 
Ja, ich arbeite mit TidIrc
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Sa 05.02.05 20:28 
Gut. Ich "edite" hier gleich einen Link rein, wo du ein ganz simples Beispiel-Projekt dazu findest. :D

Link: www.rzuser.uni-heide.../~juhrig/irctest.zip

_________________
Steht der Bauer im Gemüse, hat er später grüne Füße.
Christian V. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 311

Win Xp Prof
Turbo Delphi 2005
BeitragVerfasst: Sa 05.02.05 20:30 
Danke, werds mir anschauen, und mich dann wieder melden...
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Sa 05.02.05 20:32 
Gut. :D Wie gesagt. Ganz simpel. Aber bei mir funktioniert's. Hab's eben erst geproggt.

_________________
Steht der Bauer im Gemüse, hat er später grüne Füße.
Christian V. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 311

Win Xp Prof
Turbo Delphi 2005
BeitragVerfasst: Sa 05.02.05 20:33 
Bist du dir sicher dass das funzt?
Bei mir kommt derselbe fehler, denn genau das mache ich auch.
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Sa 05.02.05 20:36 
Das funktioniert ganz sicher. Es liegt also nicht am Code, sondern an deinen Konfigurationen. Probier mal, deine FW zu disablen.

_________________
Steht der Bauer im Gemüse, hat er später grüne Füße.
Christian V. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 311

Win Xp Prof
Turbo Delphi 2005
BeitragVerfasst: Sa 05.02.05 20:37 
meine was? und wie mache ich das?
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Sa 05.02.05 20:39 
FW = Firewall :lol:
Und die tust du einfach ausschalten.

_________________
Steht der Bauer im Gemüse, hat er später grüne Füße.
Christian V. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 311

Win Xp Prof
Turbo Delphi 2005
BeitragVerfasst: Sa 05.02.05 20:40 
hab den fehler gefunden, Musste Kapersky AntiHacker deaktivieren.
Christian V. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 311

Win Xp Prof
Turbo Delphi 2005
BeitragVerfasst: Sa 05.02.05 20:41 
danke.
Wie kann ich jezt den text abfangen der Geschrieben wird?
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Sa 05.02.05 20:41 
Dacht ich mir. :D

Ach ja, und deswegen:
invulnerabilis hat folgendes geschrieben:
//edit: Was ist denn überhaupt der Socket?

Einfach mal bei google suchen... ;)

Wikipedia, die freie Enzyklopädie hat folgendes geschrieben:
Socket
Ein Socket ist eine bi-direktionale Software-Schnittstelle zur Interprozess- (IPC) oder Netzwerk-Kommunikation. Sockets sind die vollduplexfähige Alternative zu Pipes, FiFos oder Shared Memory.

Arten von Sockets
In den RFCs ist ein Socket als ein Tupel aus Ziel- und Quell-IP-Adresse, Ziel- und Quell-Port und Netzwerkprotokoll beschrieben. Sie werden in UDP und TCP verwendet. BSD verwendet Netzwerk-Sockets seit 1983 in seiner Berkeley Sockets API. Auch Linux oder Solaris verwenden BSD-Sockets. Der Zugriff erfolgt ähnlich wie auf Dateien. Windows verwendet eine den Berkeley Sockets nachempfundene API, Windows Sockets.

Unix verwendet Sockets zu lokalen Interprozess-Kommunikation, sog. Unix Domain Sockets. Sie sind Teil des POSIX-Standards. Auch hier wird auf Sockets wie auf Dateien zugegriffen.

_________________
Steht der Bauer im Gemüse, hat er später grüne Füße.
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Sa 05.02.05 20:43 
Zum Beispiel so:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
procedure TForm1.IdIRC1Receive(Sender: TObject; ACommand: String);
begin
Memo1.Lines.Add(ACommand);
end;

_________________
Steht der Bauer im Gemüse, hat er später grüne Füße.
Christian V. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 311

Win Xp Prof
Turbo Delphi 2005
BeitragVerfasst: Sa 05.02.05 20:44 
Noch zum Fw:
Ich weiss jezt warum der das einfach geblockt hat, ohne mich zu fragen: Ich habe die Stufe auf hoch gestellt, da kommen nur noch die Progs, die er schon registriert hat ins INet.
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Sa 05.02.05 20:47 
invulnerabilis hat folgendes geschrieben:
Noch zum Fw:
Ich weiss jezt warum der das einfach geblockt hat, ohne mich zu fragen: Ich habe die Stufe auf hoch gestellt, da kommen nur noch die Progs, die er schon registriert hat ins INet.

Tja. :D Ist eigentlich schon sinnvoll. Jedoch nicht, wenn man viel mit INet-Progs proggt. :lol: Was für ein Satz...

_________________
Steht der Bauer im Gemüse, hat er später grüne Füße.
Christian V. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 311

Win Xp Prof
Turbo Delphi 2005
BeitragVerfasst: Sa 05.02.05 20:51 
Memo1:
ERROR :Closing Link: Edit2[unknown@195.162.181.169] (Unauthorized connection)
Das kommt anscheinend wenn jemand was eingibt.
warum habe ich eine unauthorisierte verbindung?
//edit: Edit2 ist mein nick.
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Sa 05.02.05 21:01 
Es kann sein, dass dieser Server nur angemeldete user annimmt. Also keine Anonymous. Was anderes glaub ich nicht. Weil bei mir funktioniert es.

Das einzige, was ich nicht weiß, ist, wie man etwas sendet. SendCmd funktioniert nicht. Und bei Say kann man nur Private Messages an einen User verschicken.

:gruebel: :hair:

Probier' mal den Host irc.piranho.com

Und nicht vergessen, einen Channel zu joinen. Mit IdIRC1.Join(Channel). Da kannst du dann z.B. den Channel #glaessitk nehmen. :D Der gehört mir. Bin jetzt aber essen. Also afk. :D

_________________
Steht der Bauer im Gemüse, hat er später grüne Füße.