Click here to Skip to main content
15,889,777 members
Home / Discussions / C#
   

C#

 
QuestionRe: Database build in c# Pin
JollyMansArt10-Oct-09 6:34
JollyMansArt10-Oct-09 6:34 
AnswerRe: Database build in c# Pin
Md. Marufuzzaman10-Oct-09 6:50
professionalMd. Marufuzzaman10-Oct-09 6:50 
AnswerRe: Database build in c# Pin
Mycroft Holmes10-Oct-09 12:53
professionalMycroft Holmes10-Oct-09 12:53 
QuestionWhy I can send only one string to server-TCP Pin
Aljaz11110-Oct-09 4:10
Aljaz11110-Oct-09 4:10 
AnswerRe: Why I can send only one string to server-TCP Pin
Luc Pattyn10-Oct-09 5:29
sitebuilderLuc Pattyn10-Oct-09 5:29 
GeneralRe: Why I can send only one string to server-TCP Pin
Aljaz11110-Oct-09 6:12
Aljaz11110-Oct-09 6:12 
GeneralRe: Why I can send only one string to server-TCP Pin
Luc Pattyn10-Oct-09 6:17
sitebuilderLuc Pattyn10-Oct-09 6:17 
GeneralRe: Why I can send only one string to server-TCP Pin
Aljaz11110-Oct-09 7:34
Aljaz11110-Oct-09 7:34 
Ok..i made new class for most of the code.. now i get error when i try to start streaming client.. here i have code in that class:
public void start_client()
        {
            IPAddress novip = IPAddress.Parse(_ip);
            Console.WriteLine("Povezujem ...");

            odjemalec.Connect(novip, int.Parse(_port));

            Console.WriteLine("Povezan");
            /*Console.Write("Vpiši besedilo: ");
            String line = Console.ReadLine();*/

        }

        public void streamaj_client()
        {
            
            
            NetworkStream networkStream = odjemalec.GetStream(); //HERE IS ERROR: Additional information: The operation is not allowed on non-connected sockets. //

            StreamReader streamReader = new StreamReader(networkStream);
            StreamWriter streamWriter = new StreamWriter(networkStream);
            streamWriter.WriteLine(podatki);
            Console.WriteLine("Pošiljam sporočilo...");
            streamWriter.Flush();
            string s = streamReader.ReadLine();


            //textBox1.Text = s;

            Console.WriteLine("Prejemam sporočilo...");
            Console.WriteLine(s);
        }


here are two methods..i get error at NetworkStream networkStream=odjemalec.GetStream(); It says networkStream=null? But i have connected client to server and it says in console that is connected. What am i doing wrong now?
Question[Message Deleted] Pin
Fred 3410-Oct-09 4:03
Fred 3410-Oct-09 4:03 
AnswerRe: useful icon for developing desktop application Pin
Md. Marufuzzaman10-Oct-09 4:25
professionalMd. Marufuzzaman10-Oct-09 4:25 
QuestionDon't convert to the nearest decimal Pin
Etienne_12310-Oct-09 3:48
Etienne_12310-Oct-09 3:48 
AnswerRe: Don't convert to the nearest decimal Pin
Luc Pattyn10-Oct-09 3:53
sitebuilderLuc Pattyn10-Oct-09 3:53 
GeneralRe: Don't convert to the nearest decimal Pin
Etienne_12310-Oct-09 3:58
Etienne_12310-Oct-09 3:58 
GeneralRe: Don't convert to the nearest decimal Pin
Luc Pattyn10-Oct-09 4:09
sitebuilderLuc Pattyn10-Oct-09 4:09 
GeneralRe: Don't convert to the nearest decimal Pin
harold aptroot10-Oct-09 4:14
harold aptroot10-Oct-09 4:14 
GeneralRe: Don't convert to the nearest decimal Pin
Luc Pattyn10-Oct-09 5:26
sitebuilderLuc Pattyn10-Oct-09 5:26 
GeneralRe: Don't convert to the nearest decimal Pin
harold aptroot10-Oct-09 5:40
harold aptroot10-Oct-09 5:40 
GeneralRe: Don't convert to the nearest decimal Pin
Luc Pattyn10-Oct-09 6:05
sitebuilderLuc Pattyn10-Oct-09 6:05 
GeneralRe: Don't convert to the nearest decimal Pin
harold aptroot10-Oct-09 6:51
harold aptroot10-Oct-09 6:51 
GeneralRe: Don't convert to the nearest decimal Pin
Etienne_12310-Oct-09 5:44
Etienne_12310-Oct-09 5:44 
GeneralRe: Don't convert to the nearest decimal Pin
Henry Minute10-Oct-09 6:05
Henry Minute10-Oct-09 6:05 
GeneralRe: Don't convert to the nearest decimal Pin
Luc Pattyn10-Oct-09 6:08
sitebuilderLuc Pattyn10-Oct-09 6:08 
GeneralRe: Don't convert to the nearest decimal Pin
Henry Minute10-Oct-09 6:13
Henry Minute10-Oct-09 6:13 
GeneralRe: Don't convert to the nearest decimal Pin
Luc Pattyn10-Oct-09 6:22
sitebuilderLuc Pattyn10-Oct-09 6:22 
Questionsecurity in exe for .net Pin
sina62ir10-Oct-09 3:45
sina62ir10-Oct-09 3:45 

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.