Click here to Skip to main content
15,899,026 members
Home / Discussions / C#
   

C#

 
AnswerRe: Is there any way to display a linked text? Pin
Graham Nimbley18-Jun-06 11:16
Graham Nimbley18-Jun-06 11:16 
GeneralRe: Is there any way to display a linked text? Pin
printscreen1234518-Jun-06 20:22
printscreen1234518-Jun-06 20:22 
GeneralRe: Is there any way to display a linked text? Pin
Graham Nimbley19-Jun-06 11:41
Graham Nimbley19-Jun-06 11:41 
GeneralRe: Is there any way to display a linked text? Pin
printscreen1234520-Jun-06 18:55
printscreen1234520-Jun-06 18:55 
QuestionEasy question! [modified] Pin
Squee!18-Jun-06 4:13
Squee!18-Jun-06 4:13 
AnswerRe: Easy question! [modified] Pin
User 665818-Jun-06 4:36
User 665818-Jun-06 4:36 
JokeRe: Easy question! Pin
Squee!18-Jun-06 9:22
Squee!18-Jun-06 9:22 
QuestionDCC Transfer - C# Pin
MaxWAT18-Jun-06 4:10
MaxWAT18-Jun-06 4:10 
Hi everybody!

I'm trying to use DCC protocol on IRC to transfer file. I did a small client who connect on IRC and there is no problem. The problem is at the moment to accept a file.

Dcc is working like that:

On a connection:

* Accept the connection.
* Close the original passive socket.
* Conduct transaction on the new socket.

Acceptor:

* CTCP DCC request received.
* Record information on the DCC request and notify the user.
* At this point, the USER should be able to abort (close) the request, or accept it. The request should be accepted with a command specifying the sender, type, and argument, or a subset of these where no ambiguity exists.
* If accepted, create a TCP socket.
* Connect the new socket to the address and port supplied.
* Conduct the transaction over the socket.

What i'm receiving on IRC looking like that:
:SenderNickName!Sender@Userhost.com PRIVMSG MyNickname :DCC SEND "afilename" 67975159 4503 3190353

After the filename, this is the IP, the port to use, and the filesize!

I'm supposed to connect on this IP and PORT using a socket (Well, I THINK) but it doesnt work. I always get an error message telling that my connection has been refused!


This is what I tried to do for the connection:

long ip = long.Parse(txtIP.Text);
int port = int.Parse(txtPort.Text);

Socket s = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.IP);
s.Connect(new IPEndPoint(new IPAddress(ip), 0));


If anyone know a solution, it would really help me!

Thanks



Max, Dinamik.ca!
AnswerRe: DCC Transfer - C# Pin
Mr. VB.NET20-Jun-06 2:13
Mr. VB.NET20-Jun-06 2:13 
QuestionDate Regulare Expression Pin
Mohamed El Gohary18-Jun-06 4:09
Mohamed El Gohary18-Jun-06 4:09 
AnswerRe: Date Regulare Expression Pin
Guffa18-Jun-06 4:15
Guffa18-Jun-06 4:15 
Question.Net version Pin
Stanciu Vlad18-Jun-06 1:09
Stanciu Vlad18-Jun-06 1:09 
AnswerRe: .Net version Pin
Dave Kreskowiak18-Jun-06 2:56
mveDave Kreskowiak18-Jun-06 2:56 
GeneralRe: .Net version Pin
Stanciu Vlad18-Jun-06 3:10
Stanciu Vlad18-Jun-06 3:10 
GeneralRe: .Net version Pin
User 665818-Jun-06 3:42
User 665818-Jun-06 3:42 
GeneralRe: .Net version Pin
Roger Alsing18-Jun-06 7:45
Roger Alsing18-Jun-06 7:45 
GeneralRe: .Net version Pin
Stanciu Vlad18-Jun-06 7:50
Stanciu Vlad18-Jun-06 7:50 
GeneralRe: .Net version Pin
Ed.Poore18-Jun-06 8:17
Ed.Poore18-Jun-06 8:17 
GeneralRe: .Net version Pin
Stanciu Vlad18-Jun-06 8:22
Stanciu Vlad18-Jun-06 8:22 
GeneralRe: .Net version Pin
Ed.Poore18-Jun-06 8:33
Ed.Poore18-Jun-06 8:33 
GeneralRe: .Net version Pin
J. Dunlap18-Jun-06 19:51
J. Dunlap18-Jun-06 19:51 
QuestionHow To get the input from parallel port using c# [modified] Pin
h_world18-Jun-06 0:42
h_world18-Jun-06 0:42 
AnswerRe: How To get the input from parallel port using c# Pin
Ed.Poore18-Jun-06 8:34
Ed.Poore18-Jun-06 8:34 
QuestionSending parameter while installation Pin
anom2m17-Jun-06 22:46
anom2m17-Jun-06 22:46 
AnswerRe: Sending parameter while installation Pin
Ed.Poore18-Jun-06 8:17
Ed.Poore18-Jun-06 8:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.