Click here to Skip to main content
15,917,795 members
Home / Discussions / C#
   

C#

 
QuestionCrystal Reports automatically sorts my columns and rows in a cross tab Pin
Mishalin5-Oct-06 3:53
Mishalin5-Oct-06 3:53 
QuestionDrawing bitmap? Pin
Dominik Reichl5-Oct-06 2:36
Dominik Reichl5-Oct-06 2:36 
AnswerRe: Drawing bitmap? Pin
aamironline5-Oct-06 4:53
aamironline5-Oct-06 4:53 
GeneralRe: Drawing bitmap? Pin
Dominik Reichl5-Oct-06 6:43
Dominik Reichl5-Oct-06 6:43 
AnswerRe: Drawing bitmap? Pin
Insincere Dave5-Oct-06 4:58
Insincere Dave5-Oct-06 4:58 
GeneralRe: Drawing bitmap? Pin
Dominik Reichl5-Oct-06 6:43
Dominik Reichl5-Oct-06 6:43 
QuestionClient/server communication Pin
The underdog5-Oct-06 2:09
The underdog5-Oct-06 2:09 
AnswerRe: Client/server communication Pin
Andrei Ungureanu5-Oct-06 2:29
Andrei Ungureanu5-Oct-06 2:29 
Hi,
My first question is that if sokje is a Socket object. If it's so then you should bind it to one ipaddress and a port number. An easy way to do that is to write something like:
Socket serverSocket = new Socket(AddressFamily.InterNetwork,SocketType.Stream,ProtocolType.Tcp);
serverSocket.Listen(5);
serverSocket.Bind(new IPEndPoint(Dns.Resolve("127.0.0.1").AddressList[0],PortNumber));

In the code you posted i don't see anywhere that you accept an incoming connection from a client. You can do that with this line of code:
Socket clientSocket = serverSocket.Accept();

Accept method is a blocking method so the program won't go further this line until a client is connected to the server. Only after you accept a client you can read what it sends.
Hope this helps.









Do your best to be the best

GeneralRe: Client/server communication Pin
The underdog5-Oct-06 2:40
The underdog5-Oct-06 2:40 
GeneralRe: Client/server communication Pin
Andrei Ungureanu5-Oct-06 3:15
Andrei Ungureanu5-Oct-06 3:15 
GeneralRe: Client/server communication [modified] Pin
The underdog5-Oct-06 3:24
The underdog5-Oct-06 3:24 
Questionupdate dataset fields in runtime Pin
topcatalpha5-Oct-06 1:28
topcatalpha5-Oct-06 1:28 
QuestionNo application associated with specified file... [modified] Pin
Support1235-Oct-06 1:26
Support1235-Oct-06 1:26 
QuestionSaving list box contents Pin
Wolf925-Oct-06 1:07
Wolf925-Oct-06 1:07 
AnswerRe: Saving list box contents Pin
rah_sin5-Oct-06 1:27
professionalrah_sin5-Oct-06 1:27 
AnswerRe: Saving list box contents Pin
MCSD-Gandalf5-Oct-06 1:27
MCSD-Gandalf5-Oct-06 1:27 
QuestionTree Library / control for c# Pin
t4ure4n5-Oct-06 0:52
t4ure4n5-Oct-06 0:52 
QuestionDoubt in Switch-Case statement. Pin
He is Cool5-Oct-06 0:41
He is Cool5-Oct-06 0:41 
AnswerRe: Doubt in Switch-Case statement. Pin
albCode5-Oct-06 0:48
albCode5-Oct-06 0:48 
GeneralRe: Doubt in Switch-Case statement. Pin
He is Cool5-Oct-06 0:53
He is Cool5-Oct-06 0:53 
GeneralRe: Doubt in Switch-Case statement. Pin
Colin Angus Mackay5-Oct-06 0:54
Colin Angus Mackay5-Oct-06 0:54 
GeneralRe: Doubt in Switch-Case statement. Pin
Christian Graus5-Oct-06 1:00
protectorChristian Graus5-Oct-06 1:00 
AnswerRe: Doubt in Switch-Case statement. Pin
Christian Graus5-Oct-06 0:53
protectorChristian Graus5-Oct-06 0:53 
GeneralRe: Doubt in Switch-Case statement. Pin
Colin Angus Mackay5-Oct-06 1:04
Colin Angus Mackay5-Oct-06 1:04 
AnswerRe: Doubt in Switch-Case statement. Pin
Colin Angus Mackay5-Oct-06 0:53
Colin Angus Mackay5-Oct-06 0:53 

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.