Click here to Skip to main content
15,895,011 members
Home / Discussions / C#
   

C#

 
GeneralRe: [Urgent] How to detect a timezone observes DST time or not Pin
senorAli3312-Jul-09 2:43
senorAli3312-Jul-09 2:43 
GeneralRe: [Urgent] How to detect a timezone observes DST time or not Pin
dan!sh 12-Jul-09 2:50
professional dan!sh 12-Jul-09 2:50 
GeneralRe: [Urgent] How to detect a timezone observes DST time or not Pin
senorAli3312-Jul-09 3:08
senorAli3312-Jul-09 3:08 
QuestionHow to set title for fixed rows in DataGridView object? Pin
pascal.schwartz11-Jul-09 20:18
pascal.schwartz11-Jul-09 20:18 
AnswerRe: How to set title for fixed rows in DataGridView object? Pin
pascal.schwartz11-Jul-09 21:32
pascal.schwartz11-Jul-09 21:32 
RantIMAPI v2 Pin
Jacob Dixon11-Jul-09 18:49
Jacob Dixon11-Jul-09 18:49 
Questionimport user32.dll in c# [modified] Pin
Vivek Vijayan11-Jul-09 16:54
Vivek Vijayan11-Jul-09 16:54 
AnswerRe: import user32.dll in c# Pin
PIEBALDconsult11-Jul-09 17:54
mvePIEBALDconsult11-Jul-09 17:54 
GeneralRe: import user32.dll in c# Pin
Vivek Vijayan11-Jul-09 18:09
Vivek Vijayan11-Jul-09 18:09 
GeneralRe: import user32.dll in c# Pin
PIEBALDconsult11-Jul-09 18:21
mvePIEBALDconsult11-Jul-09 18:21 
AnswerRe: import user32.dll in c# Pin
dan!sh 11-Jul-09 22:21
professional dan!sh 11-Jul-09 22:21 
GeneralRe: import user32.dll in c# Pin
Vivek Vijayan11-Jul-09 23:09
Vivek Vijayan11-Jul-09 23:09 
GeneralRe: import user32.dll in c# Pin
dan!sh 11-Jul-09 23:41
professional dan!sh 11-Jul-09 23:41 
AnswerRe: import user32.dll in c# [modified] Pin
Lino Chacko12-Jul-09 6:12
Lino Chacko12-Jul-09 6:12 
GeneralRe: import user32.dll in c# Pin
dan!sh 12-Jul-09 7:13
professional dan!sh 12-Jul-09 7:13 
GeneralRe: import user32.dll in c# Pin
Mirko198013-Jul-09 0:20
Mirko198013-Jul-09 0:20 
GeneralRe: import user32.dll in c# Pin
Enver Maroshi13-Jul-09 1:30
Enver Maroshi13-Jul-09 1:30 
GeneralRe: import user32.dll in c# Pin
Mirko198013-Jul-09 2:48
Mirko198013-Jul-09 2:48 
QuestionHow to increase the scope in an if statement [modified] Pin
Nathan Revka11-Jul-09 12:50
Nathan Revka11-Jul-09 12:50 
AnswerRe: How to increase the scope in an if statement Pin
harold aptroot11-Jul-09 13:03
harold aptroot11-Jul-09 13:03 
AnswerRe: How to increase the scope in an if statement Pin
Luc Pattyn11-Jul-09 13:59
sitebuilderLuc Pattyn11-Jul-09 13:59 
AnswerRe: How to increase the scope in an if statement Pin
DaveyM6911-Jul-09 14:21
professionalDaveyM6911-Jul-09 14:21 
QuestionHelp me to convert this code in Java into a C# code Pin
Member 333548911-Jul-09 9:46
Member 333548911-Jul-09 9:46 
Help me to convert this code in Java into a C# code


import java.io.*;
import java.net.*;


public class simpleServer
{
	public static void main(String args[])
	{
		// Message terminator
		char EOF = (char)0x00;

		try
		{
			// create a serverSocket connection on port 9999
			ServerSocket s = new ServerSocket(2055);

			System.out.println("Server started. Waiting for connections...");
			// wait for incoming connections
			Socket incoming = s.accept();

			BufferedReader data_in = new BufferedReader(
					new InputStreamReader(incoming.getInputStream()));
			PrintWriter data_out = new PrintWriter(incoming.getOutputStream());

			data_out.println("Welcome! type EXIT to quit." + EOF);
			data_out.flush();

			boolean quit = false;

			// Waits for the EXIT command
			while (!quit)
			{
				String msg = data_in.readLine();

				if (msg == null) quit = true;

				if (!msg.trim().equals("EXIT"))
				{
					data_out.println("You sayed: <b>" + msg.trim() + "</b>" + EOF);
					data_out.flush();
				}
				else
				{
					quit = true;
				}
			}
		}
		catch (Exception e)
		{
			System.out.println("Connection lost");
		}
	}
}

AnswerRe: Help me to convert this code in Java into a C# code Pin
OriginalGriff11-Jul-09 10:36
mveOriginalGriff11-Jul-09 10:36 
AnswerRe: Help me to convert this code in Java into a C# code Pin
Member 333548911-Jul-09 10:56
Member 333548911-Jul-09 10:56 

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.